menu
#2387628 Undefined variable: player

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 19:55:01 +0000 UTC

System Information

PHP version: 7.2.8
Operating system: linux
System banner: Linux acac120f0878 4.9.144-xxxx-std-ipv6-64 #494761 SMP Mon Dec 10 14:02:48 UTC 2018 x86_64

Error information

Warning: the Kohi1v1 plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: player
File: plugins/Kohi1v1/src/SavionLegends/Kohi1v1/events/EventListener
Line: #99
Error level: ErrorException
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
            }
}
}

/**
* @param EntityDamageEvent $event
*/
public function onHit(EntityDamageEvent $event){

if($player->getHealth() - $event->getFinalDamage() <= 0){
$event->setCancelled(true);
$match = $this->getUtils()->getGame($damager);
if($match->getName() !== $this->getUtils()->getGame($player)->getName()){
$this->getPlugin()->getLogger()->error(TextFormat::RED."A problem with match winning has occurred!");
$match->end();
$this->getUtils()->getGame($player)->end();
return;
}
$match->win($damager);

#0 plugins/Kohi1v1/src/SavionLegends/Kohi1v1/events/EventListener(99): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined variable: player, string /home/minecraft/multicraft/servers/server55421/plugins/Kohi1v1/src/SavionLegends/Kohi1v1/events/EventListener.php, integer 99, array Array())
#1 src/pocketmine/plugin/MethodEventExecutor(38): SavionLegends\Kohi1v1\events\EventListener->onHit(pocketmine\event\entity\EntityDamageEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(SavionLegends\Kohi1v1\events\EventListener object, pocketmine\event\entity\EntityDamageEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\entity\EntityDamageEvent object)
#4 src/pocketmine/entity/Entity(984): pocketmine\event\Event->call()
#5 src/pocketmine/entity/Living(572): pocketmine\entity\Entity->attack(pocketmine\event\entity\EntityDamageEvent object)
#6 src/pocketmine/Player(3719): pocketmine\entity\Living->attack(pocketmine\event\entity\EntityDamageEvent object)
#7 src/pocketmine/entity/Living(410): pocketmine\Player->attack(pocketmine\event\entity\EntityDamageEvent object)
#8 src/pocketmine/Player(1688): pocketmine\entity\Living->fall(double 7.4811)
#9 src/pocketmine/entity/Entity(1537): pocketmine\Player->fall(double 7.4811)
#10 src/pocketmine/entity/Entity(1750): pocketmine\entity\Entity->updateFallState(double -0.51989999999999, boolean 1)
#11 src/pocketmine/Player(1609): pocketmine\entity\Entity->move(double 0, double -0.51989999999999, double 0)
#12 src/pocketmine/Player(1752): pocketmine\Player->processMovement(integer 1)
#13 src/pocketmine/level/Level(848): pocketmine\Player->onUpdate(integer 1055)
#14 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 1055)
#15 src/pocketmine/Server(2434): pocketmine\level\Level->doTick(integer 1055)
#16 src/pocketmine/Server(2565): pocketmine\Server->checkTickUpdates(integer 1055, double 1557950101.382)
#17 src/pocketmine/Server(2334): pocketmine\Server->tick()
#18 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#19 src/pocketmine/Server(1774): pocketmine\Server->start()
#20 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/minecraft/multicraft/servers/server55421/, string /home/minecraft/multicraft/servers/server55421/plugins/)
#21 (1): require(string phar:///home/minecraft/multicraft/servers/server55421/PMMP-Latest-Stable.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show