Hey... I must get a player IP, I'm using: Code: $ip = $player->getPlayer()->getAddress(); or Code: $ip = $player->getAddress(); but it's crashing
if you have to get player from a event: PHP: $player = $event->getPlayer(); if(!$player->isOnline()) return; $address = $player->getAddress(); else if you just wanna get player from somewhere that's not a event: PHP: $player = $this->getServer()->getPlayer("PlayerName");if (!$player->isOnline()) return;$address = $player->getAddress(); EDIT: to get the exact player: $this->getServer()->getPlayerExact("PlayerName");