Task server
This commit is contained in:
parent
1311a2f100
commit
76e2b2c90d
@ -143,6 +143,14 @@ public class MassiveCore extends MassivePlugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getServerId() { return ConfServer.serverid; }
|
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
|
// FIELDS
|
||||||
|
@ -25,6 +25,8 @@ public class MassiveCoreMConf extends Entity<MassiveCoreMConf>
|
|||||||
// FIELDS
|
// FIELDS
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public String taskServerId = null;
|
||||||
|
|
||||||
public boolean checkVersionSynchronization = true;
|
public boolean checkVersionSynchronization = true;
|
||||||
|
|
||||||
public int maxTabCompletions = 100;
|
public int maxTabCompletions = 100;
|
||||||
|
Loading…
Reference in New Issue
Block a user