74 lines
1.5 KiB
Java
74 lines
1.5 KiB
Java
package eu.univento.core.api.server;
|
|
|
|
import org.bukkit.GameMode;
|
|
|
|
/**
|
|
* @author joethei
|
|
* @version 0.1
|
|
*/
|
|
public class ServerSettings {
|
|
|
|
private static boolean build;
|
|
private static boolean lobby;
|
|
private static boolean debug;
|
|
private static boolean mute;
|
|
private static boolean game;
|
|
private static Game playedGame;
|
|
private static GameMode gameMode;
|
|
|
|
public static Game getPlayedGameGame() {
|
|
return playedGame;
|
|
}
|
|
|
|
public static void setPlayedGame(Game game) {
|
|
ServerSettings.playedGame = game;
|
|
}
|
|
|
|
public static GameMode getGameMode() {
|
|
return gameMode;
|
|
}
|
|
|
|
public static void setGameMode(GameMode gameMode) {
|
|
ServerSettings.gameMode = gameMode;
|
|
}
|
|
|
|
public static boolean isGame() {
|
|
return game;
|
|
}
|
|
|
|
public static void setGame(boolean game) {
|
|
ServerSettings.game = game;
|
|
}
|
|
|
|
public static boolean isBuild() {
|
|
return build;
|
|
}
|
|
|
|
public static void setBuild(boolean build) {
|
|
ServerSettings.build = build;
|
|
}
|
|
|
|
public static boolean isLobby() {
|
|
return lobby;
|
|
}
|
|
|
|
public static void setLobby(boolean lobby) {
|
|
ServerSettings.lobby = lobby;
|
|
}
|
|
|
|
public static boolean isDebug() {
|
|
return debug;
|
|
}
|
|
|
|
public static void setDebug(boolean debug) {
|
|
ServerSettings.debug = debug;
|
|
}
|
|
|
|
public static boolean isMute() {
|
|
return mute;
|
|
}
|
|
|
|
public static void setMute(boolean mute) {
|
|
ServerSettings.mute = mute;
|
|
}
|
|
} |