diff --git a/src/com/massivecraft/massivecore/MassiveCore.java b/src/com/massivecraft/massivecore/MassiveCore.java index 076fcc7f..8c852fef 100644 --- a/src/com/massivecraft/massivecore/MassiveCore.java +++ b/src/com/massivecraft/massivecore/MassiveCore.java @@ -143,6 +143,14 @@ public class MassiveCore extends MassivePlugin } public static String getServerId() { return ConfServer.serverid; } + public static String getTaskServerId() { return MassiveCoreMConf.get().taskServerId; } + public static boolean isTaskServer() + { + String taskServerId = getTaskServerId(); + if (taskServerId == null) return true; + if (getServerId().equals(taskServerId)) return true; + return false; + } // -------------------------------------------- // // FIELDS diff --git a/src/com/massivecraft/massivecore/MassiveCoreMConf.java b/src/com/massivecraft/massivecore/MassiveCoreMConf.java index 1864fca3..0c566ee2 100644 --- a/src/com/massivecraft/massivecore/MassiveCoreMConf.java +++ b/src/com/massivecraft/massivecore/MassiveCoreMConf.java @@ -25,6 +25,8 @@ public class MassiveCoreMConf extends Entity // FIELDS // -------------------------------------------- // + public String taskServerId = null; + public boolean checkVersionSynchronization = true; public int maxTabCompletions = 100;