GameManager/games/Example.php
2016-07-31 22:46:09 +03:00

30 lines
No EOL
489 B
PHP

<?php
use Ad5001\GameManager\Game;
use pocketmine\Player;
class Example extends Game {
public function onGameStart() {
$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;
}
}