From 76e2b2c90dec2705bc98bc80c2dcf05379007847 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 15 Dec 2015 13:44:58 +0100 Subject: [PATCH] Task server --- src/com/massivecraft/massivecore/MassiveCore.java | 8 ++++++++ src/com/massivecraft/massivecore/MassiveCoreMConf.java | 2 ++ 2 files changed, 10 insertions(+) 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;