forked from Limework/RediSkript
Remove Skript plugin check, as it doesn't load without it anyway
This commit is contained in:
parent
1e85072e34
commit
211a45ee52
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.limework.core</groupId>
|
<groupId>net.limework.core</groupId>
|
||||||
<artifactId>RediSkript</artifactId>
|
<artifactId>RediSkript</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.2</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@ -20,7 +20,6 @@ public class RediSkript extends JavaPlugin {
|
|||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
saveDefaultConfig();
|
saveDefaultConfig();
|
||||||
if (getServer().getPluginManager().getPlugin("Skript") != null) {
|
|
||||||
startRedis(false);
|
startRedis(false);
|
||||||
|
|
||||||
PluginCommand command = getServer().getPluginCommand("reloadredis");
|
PluginCommand command = getServer().getPluginCommand("reloadredis");
|
||||||
@ -28,9 +27,6 @@ public class RediSkript extends JavaPlugin {
|
|||||||
command.setExecutor(new CommandReloadRedis(this));
|
command.setExecutor(new CommandReloadRedis(this));
|
||||||
|
|
||||||
new SkriptHook(this);
|
new SkriptHook(this);
|
||||||
} else {
|
|
||||||
getLogger().info("Skript wasn't found.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -3,8 +3,7 @@ name: RediSkript
|
|||||||
version: ${project.version}
|
version: ${project.version}
|
||||||
authors: [Govindas, ham1255, DaemonicKing]
|
authors: [Govindas, ham1255, DaemonicKing]
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
depend:
|
depend: [Skript]
|
||||||
- Skript
|
|
||||||
commands:
|
commands:
|
||||||
reloadredis:
|
reloadredis:
|
||||||
description: "Reload redis configuration & restart the connection."
|
description: "Reload redis configuration & restart the connection."
|
Loading…
Reference in New Issue
Block a user