From 35af0d3b0a4f43e902fdd47aa0dde8c511aba977 Mon Sep 17 00:00:00 2001 From: ham1255 Date: Tue, 30 Jun 2020 12:44:49 +0400 Subject: [PATCH] Skript counts as softdepend as it make the plugin usable without skript --- src/main/java/net/limework/core/LimeworkSpigotCore.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/limework/core/LimeworkSpigotCore.java b/src/main/java/net/limework/core/LimeworkSpigotCore.java index dd3a9f1..b9f178b 100644 --- a/src/main/java/net/limework/core/LimeworkSpigotCore.java +++ b/src/main/java/net/limework/core/LimeworkSpigotCore.java @@ -5,6 +5,7 @@ import ch.njol.skript.SkriptAddon; import ch.njol.skript.lang.ExpressionType; import ch.njol.skript.registrations.EventValues; import ch.njol.skript.util.Getter; +import net.limework.core.guis.TestGui; import net.limework.core.managers.RedisManager; import net.limework.core.skript.elements.EvtRedis; import net.limework.core.skript.elements.ExprChannel; @@ -27,9 +28,7 @@ public class LimeworkSpigotCore extends JavaPlugin { public void onEnable() { saveDefaultConfig(); rm = new RedisManager(this); - - - loadSkript(); + try {loadSkript();} catch (Exception e){ this.getLogger().info("Skript wasn't found."); } rm.start(); }