Add a reload command
This commit is contained in:
@@ -13,4 +13,8 @@ public interface ChatAPI {
|
||||
|
||||
DatabaseConnection getDataBase();
|
||||
|
||||
void ReloadConfig();
|
||||
|
||||
void ReloadChatFilters();
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ public class ChatImplementation implements ChatAPI{
|
||||
|
||||
public ChatImplementation() {
|
||||
instance = this;
|
||||
Config.init();
|
||||
ReloadConfig();
|
||||
|
||||
luckPerms = getLuckPerms();
|
||||
databaseConnection = getDataBase();
|
||||
@@ -49,4 +49,14 @@ public class ChatImplementation implements ChatAPI{
|
||||
return databaseConnection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ReloadConfig() {
|
||||
Config.init();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ReloadChatFilters() {
|
||||
RegexManager.initialize();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ public final class ServerConfig {
|
||||
|
||||
/** DO NOT EDIT ANYTHING ABOVE **/
|
||||
|
||||
public boolean GLOBALCHAT = true;
|
||||
public boolean GLOBALCHAT = false;
|
||||
public boolean JOINLEAVEMSSAGES = true;
|
||||
public boolean MUTED = false;
|
||||
private void ServerSettings() {
|
||||
|
||||
Reference in New Issue
Block a user