From 8626939b4dc4f64209eafa9ea4ca2321b6979c88 Mon Sep 17 00:00:00 2001 From: Blumieare Exxarion Date: Sun, 5 Jul 2015 12:31:45 -0400 Subject: [PATCH] 8.0 --- src/WorldGM/PlayerEventListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } }