Add a reload command

This commit is contained in:
destro174
2021-08-14 19:55:32 +02:00
parent 0ace870550
commit 47fb205001
7 changed files with 82 additions and 2 deletions
@@ -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() {