diff --git a/pom.xml b/pom.xml
index 11b2420..e802f6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
icu.nyat.Kusunoki
NyatLib
- 0.5.0-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 457904f..6df9a27 100644
--- a/src/main/java/icu/nyat/kusunoki/NyatLib.java
+++ b/src/main/java/icu/nyat/kusunoki/NyatLib.java
@@ -3,35 +3,20 @@
import icu.nyat.kusunoki.utils.NyatLibLogger;
import icu.nyat.kusunoki.utils.ReloadCmd;
import icu.nyat.kusunoki.packet.*;
-import icu.nyat.kusunoki.utils.HttpUtil;
import icu.nyat.kusunoki.packet.PlayerListener;
-import icu.nyat.kusunoki.utils.NyatLibYAMLPraser;
import icu.nyat.kusunoki.motd.PingEventPaper;
import icu.nyat.kusunoki.motd.PingEventSpigot;
import io.papermc.lib.PaperLib;
-import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
-import org.bukkit.Bukkit;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
-import org.yaml.snakeyaml.Yaml;
-import java.io.InputStream;
import java.util.Collections;
-import java.util.Objects;
-
-import static icu.nyat.kusunoki.utils.NyatLibYAMLPraser.*;
-import static org.bukkit.Bukkit.getServer;
public final class NyatLib extends JavaPlugin {
- //public static final NyatLib plugin = NyatLib.getPlugin(NyatLib.class);
private static NyatLib Main;
private String version = this.getDescription().getVersion().toString();
- //public String author = this.getDescription().getAuthors().toString();
- //public String website = this.getDescription().getWebsite().toString();
private NyatLibCore brandUpdater;
- //public boolean isProtocolLibInstalled;
-
@Override
public void onLoad(){
@@ -51,7 +36,7 @@ public void onLoad(){
public void onEnable(){
NyatLibLogger Logger = new NyatLibLogger();
Main = this;
- NyatLibOnEnableLog ResourceFetch = new NyatLibOnEnableLog();
+ NyatLibOnEnable ResourceFetch = new NyatLibOnEnable();
try {
ResourceFetch.Fetch();
}catch(Exception e){
@@ -87,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/NyatLibOnEnableLog.java b/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java
similarity index 92%
rename from src/main/java/icu/nyat/kusunoki/NyatLibOnEnableLog.java
rename to src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java
index 55b761d..0e5d6cb 100644
--- a/src/main/java/icu/nyat/kusunoki/NyatLibOnEnableLog.java
+++ b/src/main/java/icu/nyat/kusunoki/NyatLibOnEnable.java
@@ -1,6 +1,5 @@
package icu.nyat.kusunoki;
-import icu.nyat.kusunoki.NyatLib;
import icu.nyat.kusunoki.utils.HttpUtil;
import icu.nyat.kusunoki.utils.NyatLibLogger;
@@ -10,16 +9,14 @@
import static org.bukkit.Bukkit.getServer;
import org.bukkit.plugin.Plugin;
-import org.bukkit.plugin.java.JavaPlugin;
-public class NyatLibOnEnableLog {
+public class NyatLibOnEnable {
public static final Plugin plugin = NyatLib.getPlugin(NyatLib.class);
private String author = plugin.getDescription().getVersion();
private String website = plugin.getDescription().getWebsite();
public static String SubMCVersion;
public boolean isProtocolLibInstalled;
- public String ProtocolLibVersion;
NyatLibLogger Logger = new NyatLibLogger();
public void Fetch(){
Logger.logINFO("ยง3Powered By " + author);