diff --git a/src/player/Player.php b/src/player/Player.php index 4adf1bba1..0d3746e4c 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -1209,7 +1209,7 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ } if($exceededRateLimit){ //client and server positions will be out of sync if this happens - $this->server->getLogger()->debug("Player " . $this->getName() . " exceeded movement rate limit, forcing to last accepted position"); + $this->logger->debug("Exceeded movement rate limit, forcing to last accepted position"); $this->sendPosition($this->location, $this->location->getYaw(), $this->location->getPitch(), MovePlayerPacket::MODE_RESET); } }