9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2026-01-04 15:31:47 +00:00
This commit is contained in:
Xiao-MoMi
2022-10-01 01:14:41 +08:00
parent 7a9bfad0de
commit 78e72ff90c
41 changed files with 609 additions and 48 deletions

View File

@@ -192,7 +192,7 @@ public final class CustomNameplates extends JavaPlugin {
}
if (ConfigManager.Module.nameplate){
ConfigManager.Nameplate.reload();
ConfigManager.DatabaseConfig.reload();
ConfigManager.Database.reload();
if (ConfigManager.Main.tab_bc) {
proxyDataListener = new ProxyDataListener();
this.getServer().getMessenger().registerOutgoingPluginChannel(this, "customnameplates:cnp");
@@ -236,6 +236,9 @@ public final class CustomNameplates extends JavaPlugin {
AdventureUtil.consoleMessage("<red>[CustomNameplates] Unknown nameplate mode!");
}
}
if (this.chatBubblesManager != null) {
this.chatBubblesManager.unload();
}
if (ConfigManager.Module.bubbles) {
ConfigManager.Bubbles.load();
this.chatBubblesManager = new ChatBubblesManager("BUBBLE");
@@ -247,9 +250,6 @@ public final class CustomNameplates extends JavaPlugin {
this.imageParser = new OXImageHook();
}
}
else if (this.chatBubblesManager != null) {
this.chatBubblesManager.unload();
}
}
else {
if (this.nameplateManager != null) {