Class SubServerImpl
java.lang.Object
net.md_5.bungee.BungeeServerInfo
net.ME1312.SubServers.Bungee.Host.ServerImpl
net.ME1312.SubServers.Bungee.Host.SubServerImpl
- All Implemented Interfaces:
ServerInfo,ExtraDataHandler<String>,ClientHandler,SubDataSerializable,Server,SubServer
- Direct Known Subclasses:
ExternalSubServer,InternalSubServer
SubServer Layout Class
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.ME1312.SubServers.Bungee.Host.SubServer
SubServer.LoggedCommand, SubServer.StopAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Patternprotected booleanprotected booleanprotected booleanprotected boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubServerImpl(Host host, String name, int port, String motd, boolean hidden, boolean restricted) Creates a SubServerprotectedSubServerImpl(Host host, String name, Integer port, String motd, boolean hidden, boolean restricted) Creates a SubServer -
Method Summary
Modifier and TypeMethodDescriptionintEdits the Serverprotected intEdits the ServerbooleanGet incompatibility issues this server currently hasGet all listed incompatibilities for this ServerGrabs the Template this Server was created frombooleanIs this Host Available?booleanisCompatible(SubServer server) Checks if a Server is compatiblebooleanisOnline()If the Server is Online
This method can only be true when a SubData connection is made!protected final booleanGet if this server has been registeredbooleanIf the Server is Stopping
This method can only be true when the server is stopped through the server manager!intEdits the Server (& Saves Changes)voidsetTemplate(String template) Sets the Template this Server was created fromvoidsetTemplate(SubCreator.ServerTemplate template) Sets the Template this Server was created fromvoidtoggleCompatibility(SubServer... server) Toggles compatibility with other ServersMethods 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, setDisplayName, 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, command, getDisplayName, getGroups, getMotd, getRemotePlayers, getSignature, getWhitelist, isHidden, isRestricted, isWhitelisted, persist, removeGroup, setDisplayName, 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, getCommandHistory, getExecutable, getFullPath, getHost, getLogger, getPath, getStopAction, getStopCommand, isEditable, isEnabled, isLogging, isRunning, permaEdit, setEnabled, setLogging, setStopAction, setStopCommand, start, start, stop, stop, terminate, terminate, waitFor
-
Field Details
-
DISALLOWED_COMMANDS
-
registered
protected boolean registered -
started
protected boolean started -
stopping
protected boolean stopping -
updating
protected boolean updating
-
-
Constructor Details
-
SubServerImpl
protected SubServerImpl(Host host, String name, int port, String motd, boolean hidden, boolean restricted) throws InvalidServerException Creates a SubServer- Parameters:
host- Hostname- Server Nameport- Port Numbermotd- Server MOTDhidden- Hidden Statusrestricted- Restricted Status- Throws:
InvalidServerException- See Also:
-
SubServerImpl
protected SubServerImpl(Host host, String name, Integer port, String motd, boolean hidden, boolean restricted) throws InvalidServerException Creates a SubServer- Parameters:
host- Hostname- Server Nameport- Port Numbermotd- Server MOTDhidden- Hidden Statusrestricted- Restricted Status- Throws:
InvalidServerException- See Also:
-
-
Method Details
-
edit
Description copied from interface:SubServerEdits the Server -
permaEdit
Description copied from interface:SubServerEdits the Server (& Saves Changes) -
edit
Edits the Server- Parameters:
player- Player Editingedit- Editsperma- Saves Changes- Returns:
- Success Status
-
isRegistered
protected final boolean isRegistered()Description copied from class:ServerImplGet if this server has been registered- Overrides:
isRegisteredin classServerImpl- Returns:
- Registered status
-
isAvailable
public boolean isAvailable()Description copied from interface:SubServerIs this Host Available?- Specified by:
isAvailablein interfaceSubServer- Returns:
- Availability Status
-
isOnline
public boolean isOnline()Description copied from interface:SubServerIf the Server is Online
This method can only be true when a SubData connection is made! -
isStopping
public boolean isStopping()Description copied from interface:SubServerIf the Server is Stopping
This method can only be true when the server is stopped through the server manager!- Specified by:
isStoppingin interfaceSubServer- Returns:
- Stopping Status
-
setTemplate
Description copied from interface:SubServerSets the Template this Server was created from- Specified by:
setTemplatein interfaceSubServer- Parameters:
template- Value
-
setTemplate
Description copied from interface:SubServerSets the Template this Server was created from- Specified by:
setTemplatein interfaceSubServer- Parameters:
template- Value
-
getTemplate
Description copied from interface:SubServerGrabs the Template this Server was created from- Specified by:
getTemplatein interfaceSubServer- Returns:
- The Template
-
toggleCompatibility
Description copied from interface:SubServerToggles compatibility with other Servers- Specified by:
toggleCompatibilityin interfaceSubServer- Parameters:
server- SubServers to toggle
-
isCompatible
Description copied from interface:SubServerChecks if a Server is compatible- Specified by:
isCompatiblein interfaceSubServer- Parameters:
server- Server to check- Returns:
- Compatible Status
-
getIncompatibilities
Description copied from interface:SubServerGet all listed incompatibilities for this Server- Specified by:
getIncompatibilitiesin interfaceSubServer- Returns:
- Incompatibility List
-
getCurrentIncompatibilities
Description copied from interface:SubServerGet incompatibility issues this server currently has- Specified by:
getCurrentIncompatibilitiesin interfaceSubServer- Returns:
- Current Incompatibility List
-
equals
- Overrides:
equalsin classServerImpl
-
forSubData
- Specified by:
forSubDatain interfaceClientHandler- Specified by:
forSubDatain interfaceSubDataSerializable- Overrides:
forSubDatain classServerImpl
-