Remove Skript plugin check, as it doesn't load without it anyway

This commit is contained in:
Govindas 2020-11-02 12:09:18 +02:00
parent 8d4ee31faa
commit 76b7166145
3 changed files with 7 additions and 12 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.limework.core</groupId>
<artifactId>RediSkript</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
<packaging>jar</packaging>
<build>

View File

@ -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

View File

@ -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."