menu
#2468917 Undefined variable: ev

Submitted by PocketMine-MP 3.8.3

General information

Version: 3.8.3
Git commit: 63e58677
Plugin involvement: Direct
Report date: 2019-06-12 08:07:31 +0000 UTC

System Information

PHP version: 7.3.5
Operating system: linux
System banner: Linux a5e19ff3-09a7-4db7-aec0-b9a674c6bcea 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64

Error information

Warning: the Terra-Shards plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: ev
File: plugins/Terra-Shards_v0.0.1.phar/src/KeviinGamiing/main
Line: #25
Error level: ErrorException
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	}
public function onEnable(): void{
$this->getServer()->getPluginManager()->registerEvents($this, $this);
$this->getLogger()->info(C::GREEN . "Plugin has been Enabled");
}
public function onDisable(): void{
$this->getLogger()->critical(C::RED . "Plugin has been Disabled");
}
public function onDeath(PlayerDeathEvent $event){
$player = $ev->getPlayer();
$cause = $player->getLastDamageCause();

if($cause instanceof EntityDamageByEntityEvent){
$damager = $cause->getDamager();
$inv = $damager->getInventory();
$name = $damager->getName();
$shard = Item::get(409,0,1);
$shard->setCustomName(C::GOLD . "Terra-Shard");
$inv->addItem($shard);
}
#0 plugins/Terra-Shards_v0.0.1.phar/src/KeviinGamiing/main(25): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined variable: ev, string phar:///home/container/plugins/Terra-Shards_v0.0.1.phar/src/KeviinGamiing/main.php, integer 25, array Array())
#1 src/pocketmine/plugin/MethodEventExecutor(38): KeviinGamiing\main->onDeath(pocketmine\event\player\PlayerDeathEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(KeviinGamiing\main object, pocketmine\event\player\PlayerDeathEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerDeathEvent object)
#4 src/pocketmine/Player(3635): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(637): pocketmine\Player->onDeath()
#6 src/pocketmine/Player(3624): pocketmine\entity\Living->kill()
#7 src/pocketmine/entity/Entity(1048): pocketmine\Player->kill()
#8 src/pocketmine/entity/Living(143): pocketmine\entity\Entity->setHealth(double 0)
#9 src/pocketmine/entity/Entity(993): pocketmine\entity\Living->setHealth(double 0)
#10 src/pocketmine/entity/Living(572): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageEvent object)
#11 src/pocketmine/Player(3722): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageEvent object)
#12 src/pocketmine/entity/Entity(1110): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageEvent object)
#13 src/pocketmine/entity/Living(675): pocketmine\entity\Entity->entityBaseTick(integer 1)
#14 src/pocketmine/entity/Human(678): pocketmine\entity\Living->entityBaseTick(integer 1)
#15 src/pocketmine/Player(1764): pocketmine\entity\Human->entityBaseTick(integer 1)
#16 src/pocketmine/level/Level(848): pocketmine\Player->onUpdate(integer 8357)
#17 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 8357)
#18 src/pocketmine/Server(2436): pocketmine\level\Level->doTick(integer 8357)
#19 src/pocketmine/Server(2567): pocketmine\Server->checkTickUpdates(integer 8357, double 1560326851.0471)
#20 src/pocketmine/Server(2336): pocketmine\Server->tick()
#21 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#22 src/pocketmine/Server(1775): pocketmine\Server->start()
#23 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/container/, string /home/container/plugins/)
#24 (1): require(string phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show