mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Remove channel reloading, add filter reloading
This commit is contained in:
1 parent
70fd7c2cd9
commit
0807506045
5 files changed
+16
-9
No files matched your search
@@ -41,6 +41,8 @@ public final class CarbonChat extends JavaPlugin {
|
||||
private YamlConfiguration languageConfig;
|
||||
private YamlConfiguration commandsConfig;
|
||||
|
||||
private FilterHandler filterHandler;
|
||||
|
||||
public static final LegacyComponentSerializer LEGACY =
|
||||
LegacyComponentSerializer.builder()
|
||||
.extractUrls()
|
||||
@@ -143,7 +145,10 @@ public final class CarbonChat extends JavaPlugin {
|
||||
pluginManager.registerEvents(new WhisperPingHandler(this), this);
|
||||
|
||||
pluginManager.registerEvents(new CapsHandler(this), this);
|
||||
pluginManager.registerEvents(new FilterHandler(this), this);
|
||||
|
||||
filterHandler = new FilterHandler(this);
|
||||
pluginManager.registerEvents(filterHandler, this);
|
||||
|
||||
pluginManager.registerEvents(new MuteHandler(), this);
|
||||
pluginManager.registerEvents(new ShadowMuteHandler(this), this);
|
||||
}
|
||||
@@ -155,6 +160,8 @@ public final class CarbonChat extends JavaPlugin {
|
||||
loadModConfig();
|
||||
loadLanguage();
|
||||
loadCommandsConfig();
|
||||
|
||||
filterHandler.reloadFilters();
|
||||
}
|
||||
|
||||
private void loadModConfig() {
|
||||
|
||||
Reference in new issue
Block a user