menu
#7304515 Call to a member function getPlayers() on null

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-06 00:16:43 +0000 UTC
Server uptime: 0 days 0 hours 7 minutes 1 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 44c0cd9e-ad73-471b-ab89-5581950c5cce 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64

Error information

Warning: the EterCore plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getPlayers() on null
File: plugins/EterCore_v3.0Fix.phar/src/Eter/UI
Line: #172
Error level: Error
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
			$world = $resultArr['world'];
$players[] = $banPlayer;
$i = $i + 1;
}

sort($players);

foreach ($players as $pp){

$Mac = count($this->plugin->getServer()->getWorldManager()->getWorldByName($world)->getPlayers());
$form->addButton("{$pp} \n┬žeConectados: ┬žb{$Mac}", 0, "textures/ui/worldsIcon", $pp);

}

$form->sendToPlayer($player);
return $form;
}
public function DelWarps($player){
$form = new SimpleForm(function (Player $player, $data = null){
if($data === null){
#0 plugins/EterCore_v3.0Fix.phar/src/Eter/Core(751): Eter\UI->getWarps(object ipad54\netherblocks\player\Player#181482)
#1 pmsrc/src/command/PluginCommand(50): Eter\Core->onCommand(object ipad54\netherblocks\player\Player#181482, object pocketmine\command\PluginCommand#26290, string[4] warp, array[0])
#2 pmsrc/src/command/SimpleCommandMap(205): pocketmine\command\PluginCommand->execute(object ipad54\netherblocks\player\Player#181482, string[4] warp, array[0])
#3 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object ipad54\netherblocks\player\Player#181482, string[4] warp)
#4 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object ipad54\netherblocks\player\Player#181482, string[4] warp)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(736): pocketmine\player\Player->chat(string[5] /warp)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#172301)
#7 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#179737)
#8 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#172301, string[26] M./warp..D..Q\........3...)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[30] ..e./O,*`....B`...+$..Hp..a`..)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 6, string[39] .A...wV..`..n..u.$.......{+...g..f.."s])
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#101135)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659745003.8188)
#15 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#17 pmsrc/src/PocketMine(327): pocketmine\server()
#18 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show