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