CoreArenapublic interface Arena
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addPlayer(GamePlayer player) |
Attempts to add a player to the arena.
|
void |
addSpawn(org.bukkit.Location location) |
Adds a spawn to the arena and categorizes it as a free-for-all spawn.
|
void |
addSpawn(org.bukkit.Location location,
Team team) |
Adds a spawn the the arena and associates it with a certain team
|
boolean |
addSpectator(GamePlayer player) |
Attempts to add a spectator to the arena.
|
void |
countdown() |
Begins the countdown in the arena, which signifies a transition from the lobby state to the in-game state.
|
void |
end() |
Ends the arena, removes all current players, and awards the winner(s).
|
java.lang.String |
getName() |
Gets the name of the map for the arena.
|
java.util.List<GamePlayer> |
getPlayers() |
Gets the list of players currently playing in the arena.
|
org.bukkit.Location |
getPregame() |
Gets the pregame teleport location for the arena.
|
ScoreboardManager |
getScoreboard() |
Gets the ScoreboardManager of the arena.
|
java.util.List<GamePlayer> |
getSpectators() |
Gets the list of players currently spectating the arena.
|
GameState |
getState() |
Gets the state of the arena.
|
org.bukkit.World |
getWorld() |
Gets the World of the arena.
|
void |
removePlayer(GamePlayer player) |
Removes a player from the arena if they are playing in it.
|
void |
removeSpectator(GamePlayer player) |
Removes a player from the arena if they are spectating it.
|
void |
setPregame(org.bukkit.Location pregame) |
Sets the pregame teleport location for the arena.
|
void |
setSpectatorSpawn(org.bukkit.Location spectatorSpawn) |
Sets the spectator teleport location for the arena.
|
void |
spawnPlayer(GamePlayer player) |
Spawns a entity in the arena.
|
void |
start() |
Starts the arena, and begins the in-game state.
|
boolean addPlayer(GamePlayer player)
player - the GamePlayer to attempt to addvoid removePlayer(GamePlayer player)
player - the GamePlayer to removeboolean addSpectator(GamePlayer player)
player - the GamePlayer to attempt to addvoid removeSpectator(GamePlayer player)
player - the GamePlayer to removevoid spawnPlayer(GamePlayer player)
player - the entity to spawnvoid countdown()
void start()
void end()
java.util.List<GamePlayer> getPlayers()
java.util.List<GamePlayer> getSpectators()
GameState getState()
GameStateScoreboardManager getScoreboard()
ScoreboardManagerjava.lang.String getName()
void addSpawn(org.bukkit.Location location)
location - the location of the spawn to addvoid addSpawn(org.bukkit.Location location,
Team team)
location - the location of the spawn to addteam - the team to associate the spawn withvoid setPregame(org.bukkit.Location pregame)
pregame - the location to teleport players before the gameorg.bukkit.Location getPregame()
void setSpectatorSpawn(org.bukkit.Location spectatorSpawn)
spectatorSpawn - the location to teleport spectators initiallyorg.bukkit.World getWorld()