mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fixes regarding 1.9+ support
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user