mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-28 00:55:29 +01:00
new thing to check ML build sync
This commit is contained in:
parent
98801a4870
commit
0ac0230ebb
@ -89,17 +89,25 @@ public class MMOCore extends LuminePlugin {
|
|||||||
|
|
||||||
public boolean shouldDebugSQL = false;
|
public boolean shouldDebugSQL = false;
|
||||||
|
|
||||||
|
private static final int MYTHICLIB_COMPATIBILITY_INDEX = 1;
|
||||||
|
|
||||||
public MMOCore() {
|
public MMOCore() {
|
||||||
plugin = this;
|
plugin = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void load() {
|
public void load() {
|
||||||
|
|
||||||
|
// Check if the ML build matches
|
||||||
|
if (MYTHICLIB_COMPATIBILITY_INDEX != MythicLib.MMOCORE_COMPATIBILITY_INDEX) {
|
||||||
|
getLogger().log(Level.WARNING, "Your versions of MythicLib and MMOCore do not match. Make sure you are using the latest builds of both plugins");
|
||||||
|
disable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Register target restrictions due to MMOCore in MythicLib
|
// Register target restrictions due to MMOCore in MythicLib
|
||||||
MythicLib.plugin.getEntities().registerRestriction(new MMOCoreTargetRestriction());
|
MythicLib.plugin.getEntities().registerRestriction(new MMOCoreTargetRestriction());
|
||||||
|
|
||||||
/*
|
// Register extra objective, drop items...
|
||||||
* register extra objective, drop items...
|
|
||||||
*/
|
|
||||||
if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null)
|
if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null)
|
||||||
loadManager.registerLoader(new WorldGuardMMOLoader());
|
loadManager.registerLoader(new WorldGuardMMOLoader());
|
||||||
|
|
||||||
@ -110,12 +118,6 @@ public class MMOCore extends LuminePlugin {
|
|||||||
|
|
||||||
if (Bukkit.getPluginManager().getPlugin("MythicMobs") != null)
|
if (Bukkit.getPluginManager().getPlugin("MythicMobs") != null)
|
||||||
loadManager.registerLoader(new MythicMobsMMOLoader());
|
loadManager.registerLoader(new MythicMobsMMOLoader());
|
||||||
|
|
||||||
/*
|
|
||||||
* WorldGuard closes the flag registry after 'onLoad()', so it must be
|
|
||||||
* registered here or it will throw an IllegalStateException
|
|
||||||
*/
|
|
||||||
// if (Bukkit.getPluginManager().getPlugin("WorldGuard") != null) flagPlugin = new WorldGuardFlags();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void enable() {
|
public void enable() {
|
||||||
|
Loading…
Reference in New Issue
Block a user