Class ServerInfo
- java.lang.Object
-
- com.djrapitops.plan.identification.ServerInfo
-
- All Implemented Interfaces:
SubSystem
- Direct Known Subclasses:
BungeeServerInfo
,ServerServerInfo
,VelocityServerInfo
public abstract class ServerInfo extends java.lang.Object implements SubSystem
SubSystem for managing Server information.Most information is accessible via static methods.
-
-
Field Summary
Fields Modifier and Type Field Description protected Server
server
protected ServerProperties
serverProperties
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerInfo(ServerProperties serverProperties)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.protected ServerUUID
generateNewUUID()
Server
getServer()
ServerIdentifier
getServerIdentifier()
ServerProperties
getServerProperties()
ServerUUID
getServerUUID()
java.util.Optional<ServerUUID>
getServerUUIDSafe()
protected abstract void
loadServerInfo()
-
-
-
Field Detail
-
server
protected Server server
-
serverProperties
protected final ServerProperties serverProperties
-
-
Constructor Detail
-
ServerInfo
protected ServerInfo(ServerProperties serverProperties)
-
-
Method Detail
-
getServer
public Server getServer()
-
getServerUUID
public ServerUUID getServerUUID()
-
getServerIdentifier
public ServerIdentifier getServerIdentifier()
-
getServerUUIDSafe
public java.util.Optional<ServerUUID> getServerUUIDSafe()
-
getServerProperties
public ServerProperties getServerProperties()
-
enable
public void enable()
Description copied from interface:SubSystem
Performs enable actions for the subsystem.
-
loadServerInfo
protected abstract void loadServerInfo()
-
disable
public void disable()
Description copied from interface:SubSystem
Performs disable actions for the subsystem
-
generateNewUUID
protected ServerUUID generateNewUUID()
-
-