
GameAPI
GameAPI is an API to help developers make games, easily!
This is maybe buggy and devotes your whole server to a game.
Feel free to use this in commercial uses, Just remember, give credit! Have fun!
USAGE:
First, extend the Game class in your own custom Game class:
public class MinigameExample extends Game
Then, implement methods. Customize them, no need for anything else.
After that, make your main class!
In onEnable(), register as this:
ArrayList<TeamType> teams = new ArrayList<TeamType>(); teams.add(TeamType.RED); teams.add(TeamType.CYAN); Game game = new MinigameExample(Bukkit.getWorld("lobby"), Bukkit.getWorld("game1"), 5, GameType.MINIGAME, 20, 2, this, teams);