mirror of
https://github.com/xHyroM/lighteco.git
synced 2024-12-22 04:21:06 +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;
|
||||
|
||||
import dev.jorel.commandapi.CommandAPI;
|
||||
import dev.jorel.commandapi.CommandAPIBukkitConfig;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
// Used inside plugin.yml
|
||||
|
@ -16,20 +14,15 @@ public class BukkitLightEcoLoader extends JavaPlugin {
|
|||
@Override
|
||||
public void onLoad() {
|
||||
this.bootstrap.onLoad();
|
||||
CommandAPI.onLoad(new CommandAPIBukkitConfig(this)
|
||||
.verboseOutput(this.bootstrap.getPlugin().getConfig().debug)
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
CommandAPI.onEnable();
|
||||
this.bootstrap.onEnable();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
CommandAPI.onDisable();
|
||||
this.bootstrap.onDisable();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue