diff --git a/src/WorldGM/PlayerEventListener.php b/src/WorldGM/PlayerEventListener.php index 17c853a..26142a1 100644 --- a/src/WorldGM/PlayerEventListener.php +++ b/src/WorldGM/PlayerEventListener.php @@ -34,9 +34,9 @@ public function __construct(WorldGM $plugin) { } public function onLevelChange(EntityLevelChangeEvent $event) { - $entity = $event->getEntity(); - if ($entity instanceof Player) { - $this->plugin->checkPlayer($entity); + $player = $event->getEntity(); + if ($player instanceof Player) { + $this->plugin->checkPlayer($player); } }