diff --git a/src/main/java/net/guizhanss/fastmachines/FastMachines.java b/src/main/java/net/guizhanss/fastmachines/FastMachines.java index a2704a4..18a7b57 100644 --- a/src/main/java/net/guizhanss/fastmachines/FastMachines.java +++ b/src/main/java/net/guizhanss/fastmachines/FastMachines.java @@ -71,6 +71,12 @@ private static FastMachines inst() { return getInstance(); } + @Override + protected void load() { + // check sf version + if (!checkSlimefunVersion()) return; + } + @Override public void enable() { log(Level.INFO, "===================="); @@ -78,9 +84,6 @@ public void enable() { log(Level.INFO, " by ybw0014 "); log(Level.INFO, "===================="); - // check sf version - if (!checkSlimefunVersion()) return; - // registry registry = new Registry(); @@ -160,10 +163,10 @@ private boolean checkSlimefunVersion() { String sfVersion = getServer().getPluginManager().getPlugin("Slimefun").getDescription().getVersion(); if (sfVersion.startsWith("DEV - 1104")) { for (int i = 0; i < 100; i++) { - log(Level.SEVERE, "You are using a damn ancient version of Slimefun, update Slimefun first!"); - log(Level.SEVERE, "Download Slimefun from here: https://blob.build/project/Slimefun4/Dev"); - log(Level.SEVERE, "Also join the Slimefun discord so you can get the announcements for new versions and will not be a primitive any more."); - log(Level.SEVERE, "https://discord.gg/slimefun"); + getLogger().severe("You are using a damn ancient version of Slimefun, update Slimefun first!"); + getLogger().severe("Download Slimefun from here: https://blob.build/project/Slimefun4/Dev"); + getLogger().severe("Also join the Slimefun discord so you can get the announcements for new versions and will not be a primitive any more."); + getLogger().severe("https://discord.gg/slimefun"); } getServer().getPluginManager().disablePlugin(this); return false;