Moving forward !
This commit is contained in:
parent
fb22b22bd3
commit
665426e7cf
5 changed files with 72 additions and 23 deletions
|
@ -5,6 +5,26 @@ use pocketmine\Player;
|
|||
class Example extends Game {
|
||||
|
||||
public function onGameStart() {
|
||||
$this->getLogger()->info("Game");
|
||||
$this->getLogger()->info("Game started");
|
||||
}
|
||||
|
||||
|
||||
public function onGameStop() {
|
||||
$this->getLogger()->info("Game stoped");
|
||||
}
|
||||
|
||||
|
||||
public function getName() : string {
|
||||
return "Example";
|
||||
}
|
||||
|
||||
|
||||
public function getMinPlayers() : int {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
public function getMaxPlayers() : int {
|
||||
return 5;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue