Class ExternalSubServer
java.lang.Object
net.md_5.bungee.BungeeServerInfo
net.ME1312.SubServers.Bungee.Host.ServerImpl
net.ME1312.SubServers.Bungee.Host.SubServerImpl
net.ME1312.SubServers.Bungee.Host.External.ExternalSubServer
- All Implemented Interfaces:
ServerInfo,ExtraDataHandler<String>,ClientHandler,SubDataSerializable,Server,SubServer
External SubServer Class
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ME1312.SubServers.Bungee.Host.SubServer
SubServer.LoggedCommand, SubServer.StopAction -
Field Summary
Fields inherited from class net.ME1312.SubServers.Bungee.Host.SubServerImpl
DISALLOWED_COMMANDS, registered, started, stopping, updating -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExternalSubServer(ExternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Super Method 2 (newest)protectedExternalSubServer(ExternalHost host, String name, boolean enabled, Integer port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Super Method 1 (oldest) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCommands the Serverstatic ExternalSubServerconstruct(ExternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) Creates an External SubServerprotected intEdits the ServerGets all the commands that were sent to this Server successfullyGet the Server's Executable StringgetHost()Grabs the Host of the ServerGet Process LoggergetPath()Get the Server Directory PathGet the action the Server will take when it stopsGrab the Command to Stop the ServerbooleanIf the Server is EnabledbooleanIf the Server is LoggingbooleanIf the Server is RunningvoidsetDisplayName(String value) Sets the Display Name for this ServervoidsetEnabled(boolean value) Set if the Server is EnabledvoidsetLogging(boolean value) Set if the Server is LoggingvoidsetStopAction(SubServer.StopAction action) Set the action the Server will take when it stopsvoidsetStopCommand(String value) Set the Command that Stops the ServerbooleanStarts the ServerbooleanStops the ServerbooleanTerminates the ServervoidwaitFor()Waits for the Server to StopMethods inherited from class net.ME1312.SubServers.Bungee.Host.SubServerImpl
edit, equals, forSubData, getCurrentIncompatibilities, getIncompatibilities, getTemplate, isAvailable, isCompatible, isOnline, isRegistered, isStopping, permaEdit, setTemplate, setTemplate, toggleCompatibilityMethods inherited from class net.ME1312.SubServers.Bungee.Host.ServerImpl
addExtra, addGroup, canAccess, command, construct, getDisplayName, getExtra, getExtra, getGroups, getRemotePlayers, getSignature, getSubData, getWhitelist, hasExtra, isHidden, isWhitelisted, persist, removeExtra, removeGroup, removeSubData, setHidden, setMotd, setRestricted, setSubData, unwhitelist, whitelistMethods inherited from class net.md_5.bungee.BungeeServerInfo
addPlayer, cachePing, getAddress, getMotd, getName, getPacketQueue, getPermission, getPlayers, getSocketAddress, hashCode, isRestricted, ping, ping, removePlayer, sendData, sendData, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ME1312.SubData.Server.ClientHandler
getSubData, removeSubDataMethods inherited from interface net.ME1312.Galaxi.Library.ExtraDataHandler
addExtra, getExtra, getExtra, hasExtra, removeExtraMethods inherited from interface net.ME1312.SubServers.Bungee.Host.Server
addGroup, command, command, getDisplayName, getGroups, getMotd, getRemotePlayers, getSignature, getWhitelist, isHidden, isRestricted, isWhitelisted, persist, removeGroup, setHidden, setMotd, setRestricted, setSubData, unwhitelist, whitelistMethods inherited from interface net.md_5.bungee.api.config.ServerInfo
canAccess, getAddress, getName, getPermission, getPlayers, getSocketAddress, ping, sendData, sendDataMethods inherited from interface net.ME1312.SubServers.Bungee.Host.SubServer
edit, getFullPath, isEditable, permaEdit, start, stop, terminate
-
Constructor Details
-
ExternalSubServer
protected ExternalSubServer(ExternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Super Method 2 (newest)- Throws:
InvalidServerException- See Also:
-
ExternalSubServer
protected ExternalSubServer(ExternalHost host, String name, boolean enabled, Integer port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Super Method 1 (oldest)- Throws:
InvalidServerException- See Also:
-
-
Method Details
-
construct
public static ExternalSubServer construct(ExternalHost host, String name, boolean enabled, int port, String motd, boolean log, String directory, String executable, String stopcmd, boolean hidden, boolean restricted) throws InvalidServerException Creates an External SubServer- Parameters:
host- Hostname- Nameenabled- Enabled Statusport- Port Numbermotd- MOTDlog- Logging Statusdirectory- Directoryexecutable- Executablestopcmd- Stop Commandhidden- Hidden Statusrestricted- Restricted Status- Throws:
InvalidServerException
-
start
Description copied from interface:SubServerStarts the Server- Parameters:
player- Player who Started- Returns:
- Success Status
-
stop
Description copied from interface:SubServerStops the Server- Parameters:
player- Player who Stopped- Returns:
- Success Status
-
terminate
Description copied from interface:SubServerTerminates the Server- Parameters:
player- Player who Terminated- Returns:
- Success Status
-
command
Description copied from interface:ServerCommands the Server- Parameters:
player- Player who's Commandingcommand- Command to Send
-
edit
Description copied from class:SubServerImplEdits the Server- Overrides:
editin classSubServerImpl- Parameters:
player- Player Editingedit- Editsperma- Saves Changes- Returns:
- Success Status
-
waitFor
Description copied from interface:SubServerWaits for the Server to Stop- Throws:
InterruptedException
-
isRunning
public boolean isRunning()Description copied from interface:SubServerIf the Server is Running- Returns:
- Running Status
-
setDisplayName
Description copied from interface:ServerSets the Display Name for this Server- Specified by:
setDisplayNamein interfaceServer- Overrides:
setDisplayNamein classServerImpl- Parameters:
value- Value (or null to reset)
-
getHost
Description copied from interface:SubServerGrabs the Host of the Server- Returns:
- The Host
-
isEnabled
public boolean isEnabled()Description copied from interface:SubServerIf the Server is Enabled- Returns:
- Enabled Status
-
setEnabled
public void setEnabled(boolean value) Description copied from interface:SubServerSet if the Server is Enabled- Parameters:
value- Value
-
isLogging
public boolean isLogging()Description copied from interface:SubServerIf the Server is Logging- Returns:
- Logging Status
-
setLogging
public void setLogging(boolean value) Description copied from interface:SubServerSet if the Server is Logging- Parameters:
value- Value
-
getLogger
Description copied from interface:SubServerGet Process Logger -
getCommandHistory
Description copied from interface:SubServerGets all the commands that were sent to this Server successfully- Returns:
- Command History
-
getPath
Description copied from interface:SubServerGet the Server Directory Path- Returns:
- Server Directory Path
-
getExecutable
Description copied from interface:SubServerGet the Server's Executable String- Returns:
- Executable String
-
getStopCommand
Description copied from interface:SubServerGrab the Command to Stop the Server- Returns:
- Stop Command
-
setStopCommand
Description copied from interface:SubServerSet the Command that Stops the Server- Parameters:
value- Value
-
getStopAction
Description copied from interface:SubServerGet the action the Server will take when it stops- Returns:
- Stop Action
-
setStopAction
Description copied from interface:SubServerSet the action the Server will take when it stops- Parameters:
action- Stop Action
-