Added a way to mute all chat
This commit is contained in:
@@ -238,6 +238,12 @@ public final class Config {
|
||||
|
||||
}
|
||||
|
||||
public static String SERVERMUTEPERMISSION = "chat.server-mute";
|
||||
|
||||
private static void permissions() {
|
||||
SERVERMUTEPERMISSION = getString("permissions.server-mute", SERVERMUTEPERMISSION);
|
||||
}
|
||||
|
||||
public static String IP = "0.0.0.0";
|
||||
public static String PORT = "3306";
|
||||
public static String DATABASE = "database";
|
||||
|
||||
@@ -70,8 +70,10 @@ public final class ServerConfig {
|
||||
|
||||
public boolean GLOBALCHAT = true;
|
||||
public boolean JOINLEAVEMSSAGES = true;
|
||||
public boolean MUTED = false;
|
||||
private void ServerSettings() {
|
||||
GLOBALCHAT = getBoolean("global-chat-enabled", GLOBALCHAT);
|
||||
JOINLEAVEMSSAGES = getBoolean("joinleave-messages-enabled", JOINLEAVEMSSAGES);
|
||||
MUTED = getBoolean("server-muted", MUTED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user