menu
#3232503 Undefined property: bw\BowWars::$level

Submitted by PocketMine-MP 3.9.7

General information

Version: 3.9.7
Git commit: 0c91d568
Plugin involvement: Direct
Report date: 2019-11-30 12:45:27 +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 xBowWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined property: bw\BowWars::$level
File: plugins/xBowWars_v1.0.0.phar/src/bw/arena/Arena
Line: #384
Error level: ErrorException
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
     */
public function onDeath(PlayerDeathEvent $event) {
$player = $event->getPlayer();

if(!$this->inGame($player)) return;

foreach ($event->getDrops() as $item) {
$player->getLevel()->dropItem($player, $item);
}
$this->plugin->level->broadcastLevelSoundEvent($this, LevelSoundEventPacket::SOUND_THUNDER);
$this->toRespawn[$player->getName()] = $player;
$player->addTitle("§c§lKALAH!", "§7Jangan menyerah!");
$this->disconnectPlayer($player, "", true);
$this->broadcastMessage("§a{$this->plugin->getServer()->getLanguage()->translate($event->getDeathMessage())} §7[".count($this->players)."/{$this->data["slots"]}]");
$event->setDeathMessage("");
$event->setDrops([]);
}

public function onDrop(PlayerDropItemEvent $event){
$player = $event->getPlayer();
#0 plugins/xBowWars_v1.0.0.phar/src/bw/arena/Arena(384): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[38] Undefined property: bw\BowWars::$level, string[92] phar://C:/Users/rafax/Downloads/VarCraft/plugins/xBowWars_v1.0.0.phar/src/bw/are, integer 384, array[3])
#1 src/pocketmine/plugin/MethodEventExecutor(38): bw\arena\Arena->onDeath(object pocketmine\event\player\PlayerDeathEvent)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object bw\arena\Arena, object pocketmine\event\player\PlayerDeathEvent)
#3 src/pocketmine/event/Event(97): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerDeathEvent)
#4 src/pocketmine/Player(3647): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(639): pocketmine\Player->onDeath()
#6 src/pocketmine/Player(3636): pocketmine\entity\Living->kill()
#7 src/pocketmine/entity/Entity(1054): pocketmine\Player->kill()
#8 src/pocketmine/entity/Living(143): pocketmine\entity\Entity->setHealth(double 0)
#9 src/pocketmine/entity/Entity(999): pocketmine\entity\Living->setHealth(double 0)
#10 src/pocketmine/entity/Living(574): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#11 src/pocketmine/Player(3734): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#12 src/pocketmine/entity/projectile/Projectile(318): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByChildEntityEvent)
#13 src/pocketmine/entity/projectile/Arrow(150): pocketmine\entity\projectile\Projectile->onHitEntity(object pocketmine\Player, object pocketmine\math\RayTraceResult)
#14 src/pocketmine/entity/projectile/Projectile(252): pocketmine\entity\projectile\Arrow->onHitEntity(object pocketmine\Player, object pocketmine\math\RayTraceResult)
#15 src/pocketmine/entity/Entity(1472): pocketmine\entity\projectile\Projectile->move(double -0.11267391844762, double -0.19761110323693, double -1.5216390010312)
#16 src/pocketmine/level/Level(853): pocketmine\entity\Entity->onUpdate(integer 20819)
#17 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 20819)
#18 src/pocketmine/Server(2446): pocketmine\level\Level->doTick(integer 20819)
#19 src/pocketmine/Server(2577): pocketmine\Server->checkTickUpdates(integer 20819, double 1575117927.193)
#20 src/pocketmine/Server(2346): pocketmine\Server->tick()
#21 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#22 src/pocketmine/Server(1784): pocketmine\Server->start()
#23 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\)
#24 src/pocketmine/PocketMine(300): pocketmine\server()
#25 (1): require(string[89] phar://C:/Users/rafax/Downloads/VarCraft/PocketMine-MP.phar/src/pocketmine/Pocke)

Loaded Plugins

  • Show

Server Settings

  • Show