CoreGamePlayer
public interface GamePlayer
Modifier and Type | Method | Description |
---|---|---|
void |
clearInventory() |
Clears the player's inventory, including their armor.
|
Arena |
getArena() |
Gets the Arena object for the arena the player is in.
|
org.bukkit.entity.Player |
getBukkitPlayer() |
Gets the Bukkit player object for the player.
|
GameClass |
getGameClass() |
Gets the active game class for the player.
|
Team |
getTeam() |
Gets the player's team.
|
boolean |
hasClass(GameClass gameClass) |
Checks if the player has permission to use a game class.
|
void |
heal() |
Heals the player and removes any status effects.
|
void |
initializeClass() |
Gives the player the items provided by their active class.
|
boolean |
isInGame() |
Gets the in-game status of the player.
|
boolean |
isPlaying() |
Gets the playing status of the player.
|
boolean |
isSpectating() |
Gets the spectating status of the player.
|
void |
resetTeam() |
Resets the team the player is on to a null state.
|
void |
restoreInventory() |
Restores the player's inventory to its last stored state.
|
void |
saveInventory() |
Stores the player's inventory in its current state.
|
void |
sendMessage(java.lang.String message) |
Sends the player a message with the game's prefix.
|
void |
setArena(Arena arena) |
Sets the players arena to a specific Arena object.
|
void |
setClass(GameClass gameClass) |
Sets the active game class for the player.
|
void |
setFlying(boolean flying) |
Sets if the player is flying.
|
void |
setTeam(Team team) |
Sets the player's team.
|
void |
teleport(org.bukkit.Location location) |
Teleports the player to a location.
|
void setArena(Arena arena)
arena
- the arena the player is inArena getArena()
boolean isInGame()
boolean isPlaying()
boolean isSpectating()
org.bukkit.entity.Player getBukkitPlayer()
void setClass(GameClass gameClass)
gameClass
- the game class to set as activeGameClass getGameClass()
void initializeClass()
void saveInventory()
void restoreInventory()
boolean hasClass(GameClass gameClass)
gameClass
- the class to check permission forvoid sendMessage(java.lang.String message)
message
- the content of the messageTeam getTeam()
void setTeam(Team team)
team
- the team to set the player onvoid resetTeam()
void heal()
void teleport(org.bukkit.Location location)
location
- the location to teleport the player tovoid clearInventory()
void setFlying(boolean flying)
flying
- whether or not the player is flying