diff --git a/src/pocketmine/event/player/PlayerCreationEvent.php b/src/pocketmine/event/player/PlayerCreationEvent.php index 1c1a00b2e3..a5948fd356 100644 --- a/src/pocketmine/event/player/PlayerCreationEvent.php +++ b/src/pocketmine/event/player/PlayerCreationEvent.php @@ -117,7 +117,7 @@ class PlayerCreationEvent extends Event{ throw new \RuntimeException("Base class $class must extend " . $this->baseClass); } - $this->playerClass = $class; + $this->baseClass = $class; } /**