Added a way to mute all chat
This commit is contained in:
1 parent
e7d508d8d1
commit
5a362ca67d
3 files changed
+45
No files matched your search
@@ -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