You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Call to a member function getPlayers() on null
File: plugins/Clutching-main/src/ClutchCore/Main
Line: 125
Type: Error
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ClutchCore v1.1.0
Code:
[116] $event->setCancelled();
[117] }
[118]
[119] /**
[120] * @param PlayerQuitEvent $event
[121] * @return void
[122] */
[123] public function onPlayerLeave(PlayerQuitEvent $event) : void{
[124] $player = $event->getPlayer();
[125] foreach($this->getServer()->getLevelByName($player->getMap()."-".$player->getName())->getPlayers() as $p){
[126] $pos = new Position(100, 52, 100, $this->getServer()->getLevelByName($p->getMap()."-".$p->getName()));
[127] $p->teleport($pos);
[128] $p->setGamemode(0);
[129] $p->setSpectating(false);
[130] $p->sendMessage("§cTeleporting back to your island, because the player you were spectating has left the game!");
[131] $this->getArenaManager()->giveItems($p, "stopped");
[132] }
[133] //delete game and map
[134] $player->setInGame(false);
[135]
You have the map's zip file in the plugin_data\Clutching folder. But now the plugin should do it automatically. You can DM me on discord Bumy#1447 for further assistance!
Error: Call to a member function getPlayers() on null
File: plugins/Clutching-main/src/ClutchCore/Main
Line: 125
Type: Error
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: ClutchCore v1.1.0
Code:
[116] $event->setCancelled();
[117] }
[118]
[119] /**
[120] * @param PlayerQuitEvent $event
[121] * @return void
[122] */
[123] public function onPlayerLeave(PlayerQuitEvent $event) : void{
[124] $player = $event->getPlayer();
[125] foreach($this->getServer()->getLevelByName($player->getMap()."-".$player->getName())->getPlayers() as $p){
[126] $pos = new Position(100, 52, 100, $this->getServer()->getLevelByName($p->getMap()."-".$p->getName()));
[127] $p->teleport($pos);
[128] $p->setGamemode(0);
[129] $p->setSpectating(false);
[130] $p->sendMessage("§cTeleporting back to your island, because the player you were spectating has left the game!");
[131] $this->getArenaManager()->giveItems($p, "stopped");
[132] }
[133] //delete game and map
[134] $player->setInGame(false);
[135]
Backtrace:
#0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): ClutchCore\Main->onPlayerLeave(object pocketmine\event\player\PlayerQuitEvent)
#1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object ClutchCore\Main, object pocketmine\event\player\PlayerQuitEvent)
#2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerQuitEvent)
#3 pmsrc/src/pocketmine/Player(3711): pocketmine\event\Event->call()
#4 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(176): pocketmine\Player->close(object pocketmine\lang\TranslationContainer, string[21] Internal server error)
#5 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 103.165.71.5 46735, object raklib\protocol\EncapsulatedPacket, integer 0)
#6 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
#7 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
#8 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
#10 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1629354566.4657)
#11 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#12 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#13 pmsrc/src/pocketmine/PocketMine(314): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#14 pmsrc/src/pocketmine/PocketMine(344): pocketmine\server()
#15 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
The text was updated successfully, but these errors were encountered: