mirror of
https://github.com/xHyroM/lighteco.git
synced 2024-11-10 01:18:07 +01:00
fix(bukkit): dont load commandapi twice
This commit is contained in:
parent
58cf77e2b9
commit
4c832f11f1
1 changed files with 0 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
||||||
package dev.xhyrom.lighteco.bukkit;
|
package dev.xhyrom.lighteco.bukkit;
|
||||||
|
|
||||||
import dev.jorel.commandapi.CommandAPI;
|
|
||||||
import dev.jorel.commandapi.CommandAPIBukkitConfig;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
// Used inside plugin.yml
|
// Used inside plugin.yml
|
||||||
|
@ -16,20 +14,15 @@ public class BukkitLightEcoLoader extends JavaPlugin {
|
||||||
@Override
|
@Override
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
this.bootstrap.onLoad();
|
this.bootstrap.onLoad();
|
||||||
CommandAPI.onLoad(new CommandAPIBukkitConfig(this)
|
|
||||||
.verboseOutput(this.bootstrap.getPlugin().getConfig().debug)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
CommandAPI.onEnable();
|
|
||||||
this.bootstrap.onEnable();
|
this.bootstrap.onEnable();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
CommandAPI.onDisable();
|
|
||||||
this.bootstrap.onDisable();
|
this.bootstrap.onDisable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue