Task server
This commit is contained in:
1 parent
1311a2f100
commit
76e2b2c90d
2 files changed
+10
No files matched your search
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user