public abstract class SubServerContainer extends ServerContainer implements SubServer
SubServer.LoggedCommand
Constructor and Description |
---|
SubServerContainer(Host host,
java.lang.String name,
int port,
java.lang.String motd,
boolean hidden,
boolean restricted)
Creates a SubServer
|
Modifier and Type | Method and Description |
---|---|
boolean |
command(java.lang.String command)
Commands the Server
|
int |
edit(YAMLSection edit)
Edits the Server
|
java.util.List<SubServer> |
getCurrentIncompatibilities()
Get incompatibility issues this server currently has
|
java.lang.String |
getFullPath()
Get the Full Server Directory Path
|
java.util.List<SubServer> |
getIncompatibilities()
Get all listed incompatibilities for this Server
|
boolean |
isCompatible(SubServer server)
Checks if a Server is compatible
|
boolean |
start()
Starts the Server
|
boolean |
stop()
Stops the Server
|
boolean |
terminate()
Terminates the Server
|
void |
toggleCompatibility(SubServer... server)
Toggles compatibility with other Servers
|
java.lang.String |
toString() |
addExtra, addGroup, getDisplayName, getExtra, getExtra, getGlobalPlayers, getGroups, getSignature, getSubData, hasExtra, isHidden, removeExtra, removeGroup, setDisplayName, setHidden, setMotd, setRestricted, setSubData
addPlayer, canAccess, equals, getAddress, getMotd, getName, getPacketQueue, getPlayers, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData
command, edit, getCommandHistory, getExecutable, getHost, getLogger, getPath, getStopCommand, isEditable, isEnabled, isLogging, isRunning, isTemporary, setAutoRestart, setEditable, setEnabled, setLogging, setStopCommand, setTemporary, start, stop, terminate, waitFor, willAutoRestart
addGroup, getDisplayName, getGlobalPlayers, getGroups, getMotd, getSignature, isHidden, isRestricted, removeGroup, setDisplayName, setHidden, setMotd, setRestricted
canAccess, getAddress, getName, getPlayers, ping, sendData, sendData
getSubData, setSubData
addExtra, getExtra, getExtra, hasExtra, removeExtra
public SubServerContainer(Host host, java.lang.String name, int port, java.lang.String motd, boolean hidden, boolean restricted) throws InvalidServerException
host
- Hostname
- Server Nameport
- Port Numbermotd
- Server MOTDrestricted
- Players will need a permission to join if trueInvalidServerException
public boolean start()
SubServer
public boolean stop()
SubServer
public boolean terminate()
SubServer
public boolean command(java.lang.String command)
SubServer
public int edit(YAMLSection edit)
SubServer
public java.lang.String getFullPath()
SubServer
getFullPath
in interface SubServer
public void toggleCompatibility(SubServer... server)
SubServer
toggleCompatibility
in interface SubServer
server
- SubServers to togglepublic boolean isCompatible(SubServer server)
SubServer
isCompatible
in interface SubServer
server
- Server to checkpublic java.util.List<SubServer> getIncompatibilities()
SubServer
getIncompatibilities
in interface SubServer
public java.util.List<SubServer> getCurrentIncompatibilities()
SubServer
getCurrentIncompatibilities
in interface SubServer
public java.lang.String toString()
toString
in class ServerContainer