menu
#3238258 Undefined variable: idmeta

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-12-01 12:49:49 +0000 UTC

System Information

PHP version: 7.3.12
Operating system: win
System banner: Windows NT duara 6.3 build 9600 (Windows Server 2012 R2 Datacenter Edition) AMD64

Error information

Warning: the SW plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: idmeta
File: plugins/SW_v1.0.0.phar/src/svile/sw/SWarena
Line: #539
Error level: ErrorException
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
                foreach ($this->getPlayers() as $pl) {
$pl->hidePlayer($player);
}

//$idmeta = explode(":", $this->plugin->configs["spectator.quit.item"]);
$player->getInventory()->setItem(8, Item::get(355)->setCustomName("§r§aBack To Lobby"));
$inventory = $player->getInventory();

$inventory->setHeldItemIndex(0);
$inventory->setItemInHand(Item::get((int)$idmeta[0], (int)$idmeta[1], 1));
$inventory->setHeldItemIndex(1);

$player->sendMessage($this->plugin->lang["death.spectator"]);
}
return true;
}
return false;
}

private function start() : void
#0 plugins/SW_v1.0.0.phar/src/svile/sw/SWarena(539): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: idmeta, string[88] phar://C:/Users/rafax/Downloads/VarCraft/plugins/SW_v1.0.0.phar/src/svile/sw/SWa, integer 539, array[5])
#1 plugins/SW_v1.0.0.phar/src/svile/sw/SWlistener(312): svile\sw\SWarena->closePlayer(object pocketmine\Player, boolean , boolean 1)
#2 src/pocketmine/plugin/MethodEventExecutor(38): svile\sw\SWlistener->onDamage(object pocketmine\event\entity\EntityDamageEvent)
#3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object svile\sw\SWlistener, object pocketmine\event\entity\EntityDamageEvent)
#4 src/pocketmine/event/Event(97): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageEvent)
#5 src/pocketmine/entity/Entity(992): pocketmine\event\Event->call()
#6 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageEvent)
#7 src/pocketmine/Player(3734): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageEvent)
#8 src/pocketmine/entity/Entity(1116): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageEvent)
#9 src/pocketmine/entity/Living(677): pocketmine\entity\Entity->entityBaseTick(integer 1)
#10 src/pocketmine/entity/Human(681): pocketmine\entity\Living->entityBaseTick(integer 1)
#11 src/pocketmine/Player(1767): pocketmine\entity\Human->entityBaseTick(integer 1)
#12 src/pocketmine/level/Level(853): pocketmine\Player->onUpdate(integer 170064)
#13 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 170064)
#14 src/pocketmine/Server(2446): pocketmine\level\Level->doTick(integer 170064)
#15 src/pocketmine/Server(2577): pocketmine\Server->checkTickUpdates(integer 170064, double 1575204589.7989)
#16 src/pocketmine/Server(2346): pocketmine\Server->tick()
#17 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#18 src/pocketmine/Server(1784): pocketmine\Server->start()
#19 src/pocketmine/PocketMine(278): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\rafax\Downloads\VarCraft\, string[42] C:\Users\rafax\Downloads\VarCraft\plugins\)
#20 src/pocketmine/PocketMine(300): pocketmine\server()
#21 (1): require(string[89] phar://C:/Users/rafax/Downloads/VarCraft/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show