public class Settings
extends java.lang.Object
Constructor | Description |
---|---|
Settings() |
Modifier and Type | Method | Description |
---|---|---|
static boolean |
getBlockBreak() |
Gets whether or not to allow block placing and breaking in Arenas.
|
static int |
getCountdownTime() |
Gets how long the countdown time should last for, in seconds.
|
static org.bukkit.ChatColor |
getError() |
Gets the error color used for chat messages and UI elements.
|
static org.bukkit.GameMode |
getExitMode() |
Gets the GameMode to return players to outside of an Arena.
|
static boolean |
getExplosionBlockDamage() |
Gets whether or not to allow explosions to break blocks in Arenas.
|
static boolean |
getFireBlockDamage() |
Gets whether or not to allow blocks to burn in Arenas.
|
static org.bukkit.GameMode |
getGameMode() |
Gets the GameMode to set players to when they are in an Arena.
|
static int |
getGameTime() |
Gets how long a game should last for, in seconds.
|
static boolean |
getHunger() |
Gets whether or not to allow player hunger to reduce in Arenas.
|
static boolean |
getItemManage() |
Gets whether or not to allow a player to manage their inventory in Arenas.
|
static boolean |
getJoinTeleport() |
Gets whether or not to teleport players to the global lobby when they join the server.
|
static org.bukkit.Location |
getLobby() |
Gets the lobby joining players are teleported to.
|
static int |
getMax() |
Gets the maximum amount of players for an arena.
|
static int |
getMin() |
Gets the minimum amount of players for an arena.
|
static java.lang.String |
getName() |
Gets the name of the game.
|
static java.lang.String |
getPermission() |
Gets the permission prefix for the game.
|
static java.lang.String |
getPrefix() |
Gets the prefix used for chat messages.
|
static org.bukkit.ChatColor |
getPrimary() |
Gets the primary color used for chat messages and UI elements.
|
static org.bukkit.ChatColor |
getSecondary() |
Gets the secondary color used for chat messages and UI elements.
|
static int |
getWinningEco() |
Gets the amount to reward players when they win a game, using Vault.
|
static void |
setBlockBreak(boolean blockBreak) |
Sets whether or not to allow block placing and breaking in Arenas.
|
static void |
setCountdownTime(int countdownTime) |
Sets how long the countdown time should last for, in seconds.
|
static void |
setError(org.bukkit.ChatColor error) |
Sets the error color used for chat messages and UI elements.
|
static void |
setExitMode(org.bukkit.GameMode exitMode) |
Sets the GameMode to return players to outside of an Arena.
|
static void |
setExplosionBlockDamage(boolean explosionBlockDamage) |
Sets whether or not to allow explosions to break blocks in Arenas.
|
static void |
setFireBlockDamage(boolean fireBlockDamage) |
Sets whether or not to allow blocks to burn in Arenas.
|
static void |
setGameMode(org.bukkit.GameMode gameMode) |
Sets the GameMode to set players to when they are in an Arena.
|
static void |
setGameTime(int gameTime) |
Sets how long a game should last for, in seconds.
|
static void |
setHunger(boolean hunger) |
Sets whether or not to allow player hunger to reduce in Arenas.
|
static void |
setItemManage(boolean itemManage) |
Sets whether or not to allow a player to manage their inventory in Arenas.
|
static void |
setJoinTeleport(boolean joinTeleport) |
Sets whether or not to teleport players to the global lobby when they join the server.
|
static void |
setLobby(org.bukkit.Location lobby) |
Sets the lobby joining players are teleported to.
|
static void |
setMax(int max) |
Sets the maxmimum amount of players for an arena.
|
static void |
setMin(int min) |
Sets the minimum amount of players for an arena.
|
static void |
setName(java.lang.String name) |
Sets the name of the game.
|
static void |
setPermission(java.lang.String permission) |
Sets the permission prefix for the game.
|
static void |
setPrefix(java.lang.String prefix) |
Sets the prefix used for chat messages.
|
static void |
setPrimary(org.bukkit.ChatColor primary) |
Sets the primary color used for chat messages and UI elements.
|
static void |
setSecondary(org.bukkit.ChatColor secondary) |
Sets the secondary color used for chat messages and UI elements.
|
static void |
setWinningEco(int winningEco) |
Sets the amount to reward players when they win a game, using Vault.
|
public static int getMax()
public static void setMax(int max)
max
- the new maximum amountpublic static int getMin()
public static void setMin(int min)
min
- the new minimum amountpublic static java.lang.String getName()
public static void setName(java.lang.String name)
name
- the new name of the gamepublic static java.lang.String getPrefix()
public static void setPrefix(java.lang.String prefix)
prefix
- the game's new chat prefixpublic static org.bukkit.ChatColor getPrimary()
public static void setPrimary(org.bukkit.ChatColor primary)
primary
- the new primary ChatColorpublic static org.bukkit.ChatColor getSecondary()
public static void setSecondary(org.bukkit.ChatColor secondary)
secondary
- the new secondary ChatColorpublic static org.bukkit.ChatColor getError()
public static void setError(org.bukkit.ChatColor error)
error
- the new error ChatColorpublic static org.bukkit.Location getLobby()
public static void setLobby(org.bukkit.Location lobby)
lobby
- the new global lobby locationpublic static boolean getBlockBreak()
public static void setBlockBreak(boolean blockBreak)
blockBreak
- whether or not to allow block breakagepublic static boolean getItemManage()
public static void setItemManage(boolean itemManage)
itemManage
- whether or not to allow inventory managementpublic static boolean getHunger()
public static void setHunger(boolean hunger)
hunger
- whether or not to allow hungerpublic static boolean getFireBlockDamage()
public static void setFireBlockDamage(boolean fireBlockDamage)
fireBlockDamage
- whether or not to allow blocks to burnpublic static boolean getExplosionBlockDamage()
public static void setExplosionBlockDamage(boolean explosionBlockDamage)
explosionBlockDamage
- whether or not to allow explosion block damagepublic static org.bukkit.GameMode getGameMode()
public static void setGameMode(org.bukkit.GameMode gameMode)
gameMode
- the new GameMode for Arenaspublic static org.bukkit.GameMode getExitMode()
public static void setExitMode(org.bukkit.GameMode exitMode)
exitMode
- the new GameMode outside of Arenaspublic static int getGameTime()
public static void setGameTime(int gameTime)
gameTime
- the new length of a game in secondspublic static int getCountdownTime()
public static void setCountdownTime(int countdownTime)
countdownTime
- the new countdown time in secondspublic static boolean getJoinTeleport()
public static void setJoinTeleport(boolean joinTeleport)
joinTeleport
- whether or not to teleport players on joinpublic static int getWinningEco()
public static void setWinningEco(int winningEco)
winningEco
- the new amount to give winnerspublic static java.lang.String getPermission()
public static void setPermission(java.lang.String permission)
permission
- the new permission prefix