public interface SubServer extends Server
Modifier and Type | Interface and Description |
---|---|
static class |
SubServer.LoggedCommand
Command Storage Class
|
Modifier and Type | Method and Description |
---|---|
boolean |
command(java.lang.String command)
Commands the Server
|
boolean |
command(java.util.UUID player,
java.lang.String command)
Commands the Server
|
int |
edit(java.util.UUID player,
YAMLSection edit)
Edits the Server
|
int |
edit(YAMLSection edit)
Edits the Server
|
java.util.LinkedList<SubServer.LoggedCommand> |
getCommandHistory()
Gets all the commands that were sent to this Server successfully
|
java.util.List<SubServer> |
getCurrentIncompatibilities()
Get incompatibility issues this server currently has
|
Executable |
getExecutable()
Get the Server's Executable String
|
java.lang.String |
getFullPath()
Get the Full Server Directory Path
|
Host |
getHost()
Grabs the Host of the Server
|
java.util.List<SubServer> |
getIncompatibilities()
Get all listed incompatibilities for this Server
|
SubLogger |
getLogger()
Get Process Logger
|
java.lang.String |
getPath()
Get the Server Directory Path
|
java.lang.String |
getStopCommand()
Grab the Command to Stop the Server
|
boolean |
isCompatible(SubServer server)
Checks if a Server is compatible
|
boolean |
isEditable()
If the Server is accepting requests to edit()
|
boolean |
isEnabled()
If the Server is Enabled
|
boolean |
isLogging()
If the Server is Logging
|
boolean |
isRunning()
If the Server is Running
|
boolean |
isTemporary()
If the Server is Temporary
|
void |
setAutoRestart(boolean value)
Set if the Server will Auto Restart on unexpected shutdowns
|
void |
setEditable(boolean value)
Set if the Server should accept requests to edit()
|
void |
setEnabled(boolean value)
Set if the Server is Enabled
|
void |
setLogging(boolean value)
Set if the Server is Logging
|
void |
setStopCommand(java.lang.String value)
Set the Command that Stops the Server
|
void |
setTemporary(boolean value)
Set If the Server is Temporary (will start server if not running)
|
boolean |
start()
Starts the Server
|
boolean |
start(java.util.UUID player)
Starts the Server
|
boolean |
stop()
Stops the Server
|
boolean |
stop(java.util.UUID player)
Stops the Server
|
boolean |
terminate()
Terminates the Server
|
boolean |
terminate(java.util.UUID player)
Terminates the Server
|
void |
toggleCompatibility(SubServer... server)
Toggles compatibility with other Servers
|
void |
waitFor()
Waits for the Server to Stop
|
boolean |
willAutoRestart()
If the Server will Auto Restart on unexpected shutdowns
|
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
boolean start(java.util.UUID player)
player
- Player who Startedboolean start()
boolean stop(java.util.UUID player)
player
- Player who Stoppedboolean stop()
boolean terminate(java.util.UUID player)
player
- Player who Terminatedboolean terminate()
boolean command(java.util.UUID player, java.lang.String command)
player
- Player who Commandedcommand
- Command to Sendboolean command(java.lang.String command)
command
- Command to Sendint edit(java.util.UUID player, YAMLSection edit)
player
- Player Editingedit
- Editsint edit(YAMLSection edit)
edit
- Editsvoid waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
boolean isRunning()
Host getHost()
boolean isEnabled()
void setEnabled(boolean value)
value
- Valueboolean isEditable()
edit(YAMLSection)
,
edit(UUID, YAMLSection)
void setEditable(boolean value)
value
- Edit Statusedit(YAMLSection)
,
edit(UUID, YAMLSection)
boolean isLogging()
void setLogging(boolean value)
value
- ValueSubLogger getLogger()
java.util.LinkedList<SubServer.LoggedCommand> getCommandHistory()
java.lang.String getPath()
java.lang.String getFullPath()
Executable getExecutable()
java.lang.String getStopCommand()
void setStopCommand(java.lang.String value)
value
- Valueboolean willAutoRestart()
void setAutoRestart(boolean value)
value
- Valuevoid toggleCompatibility(SubServer... server)
server
- SubServers to toggleboolean isCompatible(SubServer server)
server
- Server to checkjava.util.List<SubServer> getIncompatibilities()
java.util.List<SubServer> getCurrentIncompatibilities()
boolean isTemporary()
void setTemporary(boolean value)
value
- Value