From 3bc9762a71ea0071ace77e8aad43ac5c2c35c3e1 Mon Sep 17 00:00:00 2001 From: yukonisen#QwQ Date: Mon, 27 May 2024 23:08:43 +0800 Subject: [PATCH 1/2] fix unregistering events --- .../indi/nightfish/potato_ip_display/PotatoIpDisplay.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/kotlin/indi/nightfish/potato_ip_display/PotatoIpDisplay.kt b/bukkit/src/main/kotlin/indi/nightfish/potato_ip_display/PotatoIpDisplay.kt index e51d39b..06ad91b 100644 --- a/bukkit/src/main/kotlin/indi/nightfish/potato_ip_display/PotatoIpDisplay.kt +++ b/bukkit/src/main/kotlin/indi/nightfish/potato_ip_display/PotatoIpDisplay.kt @@ -78,7 +78,7 @@ class PotatoIpDisplay : JavaPlugin() { } /* Unregistering events */ - HandlerList.unregisterAll() + HandlerList.unregisterAll(this) /* Registering events */ if (conf.message.playerChat.enabled) @@ -93,4 +93,4 @@ class PotatoIpDisplay : JavaPlugin() { fun log(message: String, level: Level = Level.INFO) = logger.log(level, message) -} \ No newline at end of file +} From 07c901f604ca3d81ecc7bca8f41f39a614e6c05a Mon Sep 17 00:00:00 2001 From: yukonisen#QwQ Date: Mon, 27 May 2024 23:09:17 +0800 Subject: [PATCH 2/2] fix unregistering events --- PLUGIN_VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLUGIN_VERSION b/PLUGIN_VERSION index 71f2742..25f61c5 100644 --- a/PLUGIN_VERSION +++ b/PLUGIN_VERSION @@ -1 +1 @@ -PLUGIN=1.4.0 \ No newline at end of file +PLUGIN=1.4.1