From b3a686fcb60ec71868c3311e50a00ac7051896e7 Mon Sep 17 00:00:00 2001 From: Shiroiame-Kusu Date: Fri, 30 Jun 2023 15:42:58 +0800 Subject: [PATCH] Ver 0.5.1-Beta2: Daily Update. --- pom.xml | 2 +- src/main/java/icu/nyat/kusunoki/NyatLib.java | 1 + src/main/java/icu/nyat/kusunoki/NyatLibOnDisable.java | 10 ++++++++++ src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java | 1 - 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/main/java/icu/nyat/kusunoki/NyatLibOnDisable.java diff --git a/pom.xml b/pom.xml index 157fb18..e802f6c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ icu.nyat.Kusunoki NyatLib - 0.5.1-Beta.1 + 0.5.1-Beta.2 jar diff --git a/src/main/java/icu/nyat/kusunoki/NyatLib.java b/src/main/java/icu/nyat/kusunoki/NyatLib.java index a0a8fb3..6df9a27 100644 --- a/src/main/java/icu/nyat/kusunoki/NyatLib.java +++ b/src/main/java/icu/nyat/kusunoki/NyatLib.java @@ -72,5 +72,6 @@ public void onEnable(){ public void onDisable() { // Plugin shutdown logic brandUpdater.stop(); + NyatLibOnDisable.DisableStep(); } } diff --git a/src/main/java/icu/nyat/kusunoki/NyatLibOnDisable.java b/src/main/java/icu/nyat/kusunoki/NyatLibOnDisable.java new file mode 100644 index 0000000..94c4346 --- /dev/null +++ b/src/main/java/icu/nyat/kusunoki/NyatLibOnDisable.java @@ -0,0 +1,10 @@ +package icu.nyat.kusunoki; + +import icu.nyat.kusunoki.utils.NyatLibLogger; + +public class NyatLibOnDisable { + public static void DisableStep(){ + NyatLibLogger Logger = new NyatLibLogger(); + Logger.logINFO("Goodbye!"); + } +} diff --git a/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java b/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java index 3e14751..0e5d6cb 100644 --- a/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java +++ b/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java @@ -17,7 +17,6 @@ public class NyatLibOnEnable { public static String SubMCVersion; public boolean isProtocolLibInstalled; - public String ProtocolLibVersion; NyatLibLogger Logger = new NyatLibLogger(); public void Fetch(){ Logger.logINFO("ยง3Powered By " + author);