Hey, I need help with leonchang99's plugin. Before I have been using the simple @player to display the players name. Apperently that feature is gone so I need to display it with a tiny bit of code. I have tried so many times, with diffrent combinations from other plugins and from help on the forums but cannot simply get it to work. Not more than Player(1), Player(2)... What would need to be coded for this too work? This is what I would like to do: if(Server::getInstance()->loadLevel($mapname) != false){ $event->getPlayer()->sendMessage("[Mineblast] Teleporting $player To $mapname"); Thanks.
? PHP: $player = $event->getPlayer();if($this->getServer()->isLevelLoaded($levelName)){ $player->sendMessage("[Mineblast] Teleporting " . $player->getName() . " to $levelName"); // ...}
$player = $event->getPlayer()->getName(); was just fine. Tried the code above in combination with another line which made the server crash. Turned out only 1 was needed. Thanks anyways