Refactor config reload and server name handling.
Replaced inconsistent `ReloadConfig` usage with `reloadConfig` across the codebase for better naming consistency. Introduced `ServerName` utility to standardize server name retrieval and improve maintainability. Added logging enhancements for better debugging of muted users and blocked messages.
This commit is contained in:
@@ -5,15 +5,12 @@ import com.alttd.chat.config.PrefixConfig;
|
||||
import com.alttd.chat.database.DatabaseConnection;
|
||||
import com.alttd.chat.database.Queries;
|
||||
import com.alttd.chat.managers.ChatUserManager;
|
||||
import com.alttd.chat.managers.PartyManager;
|
||||
import com.alttd.chat.managers.RegexManager;
|
||||
import com.alttd.chat.util.ALogger;
|
||||
import net.luckperms.api.LuckPerms;
|
||||
import net.luckperms.api.LuckPermsProvider;
|
||||
import net.luckperms.api.model.group.Group;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class ChatImplementation implements ChatAPI{
|
||||
|
||||
@@ -26,7 +23,7 @@ public class ChatImplementation implements ChatAPI{
|
||||
|
||||
public ChatImplementation() {
|
||||
instance = this;
|
||||
ReloadConfig();
|
||||
reloadConfig();
|
||||
|
||||
luckPerms = getLuckPerms();
|
||||
databaseConnection = getDataBase();
|
||||
@@ -57,13 +54,13 @@ public class ChatImplementation implements ChatAPI{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ReloadConfig() {
|
||||
public void reloadConfig() {
|
||||
Config.init();
|
||||
loadPrefixes();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ReloadChatFilters() {
|
||||
public void reloadChatFilters() {
|
||||
RegexManager.initialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user