menu
#3548586 Undefined index: name

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-01-13 23:38:35 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux 8cea29eb-a17c-403c-b967-77c1123af06c 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64

Error information

Warning: the TNTRun plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined index: name
File: plugins/TNTRun_dev-32.phar/src/TNTRun/GameSender
Line: #28
Error level: ErrorException
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
        $this->plugin = $plugin;
$this->prefix = $this->plugin->getConfig()->get("prefix");
}

public function onRun($tick) {
$config = $this->plugin->getConfig();
$arenas = $config->get("arenas");
if (count($arenas) > 0) {
foreach ($arenas as $arena) {
$name = $arena["name"];
$time = $arena["time"];
$timeToStart = $config->getNested("arenas." . $name . ".start");
$minPlayers = $arena["minPlayers"];
$ingameplayers = $arena["players"];
$levelArena = $this->plugin->getServer()->getLevelByName($name);
if ($levelArena instanceof Level) {
$playersArena = $this->plugin->getServer()->getLevelByName($name)->getPlayers();
$onlineplayers = $this->plugin->getServer()->getOnlinePlayers();
if (count($playersArena) === 0) {
$config->setNested("arenas." . $name . ".time", $config->get("time"));
#0 plugins/TNTRun_dev-32.phar/src/TNTRun/GameSender(28): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[21] Undefined index: name, string[75] phar:///home/container/plugins/TNTRun_dev-32.phar/src/TNTRun/GameSender.php, integer 28, array[12])
#1 src/pocketmine/scheduler/TaskHandler(159): TNTRun\GameSender->onRun(integer 9371)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 9371)
#3 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 9371)
#4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 9371)
#5 src/pocketmine/Server(2346): pocketmine\Server->tick()
#6 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1785): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#9 src/pocketmine/PocketMine(291): pocketmine\server()
#10 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show