public abstract class Game
extends org.bukkit.plugin.java.JavaPlugin
setup()
, as other methods should not be overridden.
GameDeathEvent
)
net.nextinfinity.core.events
where possible. Only the Arena
and GamePlayer
implementations are intended to be modified.Constructor | Description |
---|---|
Game() |
Modifier and Type | Method | Description |
---|---|---|
ArenaManager |
getArenaManager() |
Gets the ArenaManager for the game.
|
ClassManager |
getClassManager() |
Gets the ClassManager for the game.
|
CommandHandler |
getCommandHandler() |
Gets the CommandHandler for the game.
|
PlayerHandler |
getPlayerHandler() |
Gets the PlayerHandler for the game.
|
TeamHandler |
getTeamHandler() |
Gets the TeamHandler for the game.
|
void |
onDisable() |
Removes all active arenas on shutdown.
|
void |
onEnable() |
Creates the ArenaManager, PlayerHandler, and ClassManager objects, and calls other setup functions.
|
void |
setCommand(java.lang.String command) |
Sets the primary command for the game.
|
abstract void |
setup() |
Games should implement this method to register their own listeners or perform other necessary initialization actions.
|
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
public void onEnable()
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public void onDisable()
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public abstract void setup()
public void setCommand(java.lang.String command)
command
- the name of the commandpublic ArenaManager getArenaManager()
public ClassManager getClassManager()
public PlayerHandler getPlayerHandler()
public CommandHandler getCommandHandler()
public TeamHandler getTeamHandler()