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
{{ message }}
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.
join sign keep 0/12
and crash server
Error: Undefined variable: p
File: plugins/SpleefPE/src/sp/Main
Line: 358
Type: ErrorException
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: SpleefPE v1.0.1
Code:
[349] $this->getResetMap()->reload($lvl);
[350] $this->game[$level] = false;
[351] $winner->addTitle($this->msg->get("victory"));
[352] if(isset($this->inventory[$winner->getName()]))
[353] {
[354] $winner->getInventory()->setContents($this->inventory[$winner->getName()]);
[355] }
[356] if(isset($this->armor[$winner->getName()]))
[357] {
[358] $winner->getArmorInventory()->setContents($this->armor[$p->getName()]);
[359] }
[360] unset($this->armor[$winner->getName()]);
[361] unset($this->inventory[$winner->getName()]);
[362] }
[363] }
[364] }
[365]
[366] public function fix(string $level): void
[367] {
[368] $lvl = $this->getServer()->getLevelByName($level);
Backtrace:
#0 plugins/SpleefPE/src/sp/Main(358): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[21] Undefined variable: p, string[45] /root/KejuPM/plugins/SpleefPE/src/sp/Main.php, integer 358, array[8])
#1 plugins/SpleefPE/src/sp/task/GameTask(37): sp\Main->getWinner(string[7] classic)
#2 src/pocketmine/scheduler/TaskHandler(137): sp\task\GameTask->onRun(integer 73128)
#3 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 73128)
#4 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 73128)
#5 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 73128)
#6 src/pocketmine/Server(2154): pocketmine\Server->tick()
#7 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1588): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[13] /root/KejuPM/, string[21] /root/KejuPM/plugins/)
#10 src/pocketmine/PocketMine(304): pocketmine\server()
#11 (11): require(string[68] phar:///root/KejuPM/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
The text was updated successfully, but these errors were encountered: