Make minigames easilier !
Find a file
2016-07-31 13:34:41 +03:00
resources Added signs and backups 2016-07-31 10:28:15 +03:00
src/Ad5001/GameManager Signs and starting events ! 2016-07-31 12:17:15 +03:00
.gitattributes 💥🐫 Added .gitattributes & .gitignore files 2016-07-28 09:36:48 +03:00
.gitignore 💥🐫 Added .gitattributes & .gitignore files 2016-07-28 09:36:48 +03:00
config.yml Moving forward... 2016-07-28 10:31:52 +03:00
LICENSE Create LICENSE 2016-07-28 11:10:12 +02:00
plugin.yml Starting 2016-07-28 09:39:24 +03:00
README.md Update README.md 2016-07-31 13:34:41 +03:00

GameManager

Make minigames easilier ! Gamemanager is a plugin that allow minigame writing a lot easilier with his easy api, disigned for per world minigame !
I made this for me at start but feel free to use it to write your own minigame !

How to make a game:

To make a game base, create a new file called "<YOUR_GAME_NAME>.php". Inside it, add a

``

extends Game { public function onGameStart() { // When the game start (enought players) // $this->getServer()->broadcastMessage("Game started on {$this->getLevel()->getName()}"); } public function onGameStop() { // When you stop the game. // $this->getServer()->broadcastMessage("Game stoped on {$this->getLevel()->getName()}"); } public function getName() : string { return ""; } public function getMaxPlayers() : int { // Return the max of the players return ; } // Write in progress :) } ``