Fixes regarding 1.9+ support

This commit is contained in:
Rammelkast committed 2018-08-14 11:37:17 +02:00
1 parent 06c1eab2e6
commit 7ae3f010a3
10 files changed
+43 -17

No files matched your search

@@ -70,17 +70,17 @@ public class AntiCheatReloaded extends JavaPlugin {
eventList.add(new InventoryListener());
// Order is important in some cases, don't screw with these unless
// needed, especially config
setupConfig();
setupEvents();
setupCommands();
this.setupConfig();
this.setupEvents();
this.setupCommands();
// Enterprise must come before levels
setupEnterprise();
restoreLevels();
this.setupEnterprise();
this.restoreLevels();
if (Bukkit.getPluginManager().getPlugin("ProtocolLib") != null) {
setupProtocol();
this.setupProtocol();
} else {
getLogger().severe("Shutting down, ProtocolLib not found!");
Bukkit.getConsoleSender().sendMessage("[ACR] " + ChatColor.RED + "Shutting down, ProtocolLib not found!");
Bukkit.getPluginManager().disablePlugin(this);
return;
}