From 76b7166145f238ce267e194c1ad020a7a635aa83 Mon Sep 17 00:00:00 2001 From: Govindas Date: Mon, 2 Nov 2020 12:09:18 +0200 Subject: [PATCH] Remove Skript plugin check, as it doesn't load without it anyway --- pom.xml | 2 +- .../java/net/limework/rediskript/RediSkript.java | 14 +++++--------- src/main/resources/plugin.yml | 3 +-- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 54b9dbb..ac944df 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.limework.core RediSkript - 1.2.1 + 1.2.2 jar diff --git a/src/main/java/net/limework/rediskript/RediSkript.java b/src/main/java/net/limework/rediskript/RediSkript.java index f42c66d..e09a3b7 100644 --- a/src/main/java/net/limework/rediskript/RediSkript.java +++ b/src/main/java/net/limework/rediskript/RediSkript.java @@ -20,17 +20,13 @@ public class RediSkript extends JavaPlugin { @Override public void onEnable() { saveDefaultConfig(); - if (getServer().getPluginManager().getPlugin("Skript") != null) { - startRedis(false); + startRedis(false); - PluginCommand command = getServer().getPluginCommand("reloadredis"); - assert command != null; - command.setExecutor(new CommandReloadRedis(this)); + PluginCommand command = getServer().getPluginCommand("reloadredis"); + assert command != null; + command.setExecutor(new CommandReloadRedis(this)); - new SkriptHook(this); - } else { - getLogger().info("Skript wasn't found."); - } + new SkriptHook(this); } @Override diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b25b929..7917538 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -3,8 +3,7 @@ name: RediSkript version: ${project.version} authors: [Govindas, ham1255, DaemonicKing] api-version: 1.13 -depend: - - Skript +depend: [Skript] commands: reloadredis: description: "Reload redis configuration & restart the connection." \ No newline at end of file