Skript counts as softdepend as it make the plugin usable without skript

This commit is contained in:
ham1255 2020-06-30 12:44:49 +04:00
parent b668815be4
commit b956363228

View File

@ -5,6 +5,7 @@ import ch.njol.skript.SkriptAddon;
import ch.njol.skript.lang.ExpressionType; import ch.njol.skript.lang.ExpressionType;
import ch.njol.skript.registrations.EventValues; import ch.njol.skript.registrations.EventValues;
import ch.njol.skript.util.Getter; import ch.njol.skript.util.Getter;
import net.limework.core.guis.TestGui;
import net.limework.core.managers.RedisManager; import net.limework.core.managers.RedisManager;
import net.limework.core.skript.elements.EvtRedis; import net.limework.core.skript.elements.EvtRedis;
import net.limework.core.skript.elements.ExprChannel; import net.limework.core.skript.elements.ExprChannel;
@ -27,9 +28,7 @@ public class LimeworkSpigotCore extends JavaPlugin {
public void onEnable() { public void onEnable() {
saveDefaultConfig(); saveDefaultConfig();
rm = new RedisManager(this); rm = new RedisManager(this);
try {loadSkript();} catch (Exception e){ this.getLogger().info("Skript wasn't found."); }
loadSkript();
rm.start(); rm.start();
} }