This commit is contained in:
Ad5001 2016-08-02 10:25:31 +03:00
parent a550fa1f8d
commit e09914ef19
3 changed files with 216 additions and 28 deletions

View file

@ -14,7 +14,17 @@ class Example extends Game {
}
public function onJoin(Player $player) {
parent::onJoin($player);
$this->getPlugin()->getLogger()->info($player->getName() . " joined the game " . $this->getName() . " in world " . $this->getLevel()->getName());
}
public function onQuit(Player $player) {
parent::onJoin($player);
$this->getPlugin()->getLogger()->info($player->getName() . " left the game " . $this->getName() . " in world " . $this->getLevel()->getName());
}
public function getName() : string {