Events !
This commit is contained in:
parent
a550fa1f8d
commit
e09914ef19
3 changed files with 216 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue