Task server

This commit is contained in:
BuildTools 2015-12-15 13:44:58 +01:00 committed by Olof Larsson
parent 1311a2f100
commit 76e2b2c90d
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -25,6 +25,8 @@ public class MassiveCoreMConf extends Entity<MassiveCoreMConf>
// FIELDS
// -------------------------------------------- //
public String taskServerId = null;
public boolean checkVersionSynchronization = true;
public int maxTabCompletions = 100;