menu
#4220844 Undefined offset: 0

Submitted by PocketMine-MP 3.12.2

General information

Version: 3.12.2
Git commit: 9b6b3f50
Plugin involvement: Direct
Report date: 2020-05-23 07:02:03 +0000 UTC

System Information

PHP version: 7.3.15
Operating system: linux
System banner: Linux fc1fbd13-b1ff-4a3f-898c-1afec1b8553a 4.15.0-99-generic #100-Ubuntu SMP Wed Apr 22 20:32:56 UTC 2020 x86_64

Error information

Warning: the Koth plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 0
File: plugins/Koth_v0.0.1-0.phar/src/Itzdvbravo/Koth/Arena
Line: #118
Error level: ErrorException
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
        } else {
return Null;
}
}
public function topPlayer(){
if (count($this->players) === Null){
return Null;
} else {
arsort($this->players);
return array_keys($this->players)[0];
}
}
public function startGame($time, $capTime){
$this->plugin->task->cancel();
$this->status = "on";
$this->plugin->getServer()->broadcastMessage("§eKoth event has started do /koth join to join!");
$this->gametask = $this->plugin->getScheduler()->scheduleRepeatingTask(new GameTask($this), 20);
}
public function endGame($winner)
{
#0 plugins/Koth_v0.0.1-0.phar/src/Itzdvbravo/Koth/Arena(118): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 0, string[79] phar:///home/container/plugins/Koth_v0.0.1-0.phar/src/Itzdvbravo/Koth/Arena.php, integer 118, array[0])
#1 plugins/Koth_v0.0.1-0.phar/src/Itzdvbravo/Koth/Tasks/GameTask(17): Itzdvbravo\Koth\Arena->topPlayer()
#2 src/pocketmine/scheduler/TaskHandler(134): Itzdvbravo\Koth\Tasks\GameTask->onRun(integer 48001)
#3 src/pocketmine/scheduler/TaskScheduler(176): pocketmine\scheduler\TaskHandler->run(integer 48001)
#4 src/pocketmine/plugin/PluginManager(643): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 48001)
#5 src/pocketmine/Server(2380): pocketmine\plugin\PluginManager->tickSchedulers(integer 48001)
#6 src/pocketmine/Server(2143): pocketmine\Server->tick()
#7 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1584): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show