From 640ad2949ee9333b510d8a42fec01ada9aa1098a Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Sun, 31 Jul 2016 13:34:41 +0300 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bc87056..38e17b2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,38 @@ # GameManager Make minigames easilier ! -Gamemanager is a plugin that allow minigame writing a lot easilier with his easy api, dizigned for per world minigame ! -I made this for me at start bur feel free to use it to write your own minigame ! -API : -Currently writing the wiki... +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 ".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 :) +} +``