menu
#4583678 Undefined variable: player

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-10-18 06:09:08 +0000 UTC

System Information

PHP version: 7.3.21
Operating system: linux
System banner: Linux HybridPE 4.15.0-118-generic #119-Ubuntu SMP Tue Sep 8 12:30:01 UTC 2020 x86_64

Error information

Warning: the DanBamPrison plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: player
File: plugins/DanBamPrison_v1.0.0.phar/src/hybrid/task/KoTHCountdownTask
Line: #64
Error level: ErrorException
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
            foreach ( $this->plugin->getServer()->getOnlinePlayers() as $player ) {
$player->sendTip( "KoTH will begin in: " . gmdate( "i:s", $this->graceBackward ) );
$this->bossBar->addPlayer( $player );
if ( $this->graceBackward <= 3 and $this->graceBackward >= 1 ) {
$this->plugin->getAPI()->playSoundPacket( $player, "note.pling" );
}
}
}
if ( $this->graceBackward <= 0 ) {
$this->plugin->getAPI()->playSoundPacket( $player, "note.pling" );
$this->bossBar->removeAllPlayers();
foreach ( $this->plugin->getServer()->getOnlinePlayers() as $onlinePlayer ) {
$onlinePlayer->sendMessage( Messages::PREFIX . TextFormat::BOLD . TextFormat::YELLOW . "King of The Hill has started!" );
$this->plugin->getAPI()->playSoundPacket( $onlinePlayer, "ambient.weather.thunder" );
$this->plugin->getAPI()->playSoundPacket( $onlinePlayer, "ambient.weather.lightning.impact" );
}
$this->plugin->getScheduler()->scheduleRepeatingTask( new KoTHTask( $this->plugin ), 20 );
$this->plugin->getManager()->kothOngoing = true;
$this->getHandler()->cancel();
}
#0 plugins/DanBamPrison_v1.0.0.phar/src/hybrid/task/KoTHCountdownTask(64): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: player, string[103] phar:///home/pogi/minecraft/test/plugins/DanBamPrison_v1.0.0.phar/src/hybrid/tas, integer 64, array[1])
#1 src/pocketmine/scheduler/TaskHandler(137): hybrid\task\KoTHCountdownTask->onRun(integer 360140)
#2 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 360140)
#3 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 360140)
#4 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 360140)
#5 src/pocketmine/Server(2154): pocketmine\Server->tick()
#6 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1588): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[26] /home/pogi/minecraft/test/, string[34] /home/pogi/minecraft/test/plugins/)
#9 src/pocketmine/PocketMine(304): pocketmine\server()
#10 (11): require(string[81] phar:///home/pogi/minecraft/test/PocketMine-MP.phar/src/pocketmine/PocketMine.ph)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies