Server
class Server @Inject constructor(broker: Broker, val serverRef: RegisteredServer, var config: ServerConfig, proxyServer: ProxyServer, plugin: Impulse, logger: Logger? = null)
Represents a managed server instance
Constructors
Link copied to clipboard
@Inject
creates a new server instance
Properties
Functions
Link copied to clipboard
Waits for the server to respond to Minecraft Pings
Link copied to clipboard
Handles a player disconnect event
Link copied to clipboard
Handles the ServerPostConnectEvent
Link copied to clipboard
Reconciles the server with a new configuration
Link copied to clipboard
Removes the server from the broker
Link copied to clipboard
fun scheduleShutdown(delay: Long = config.lifecycleSettings.timeouts.inactiveGracePeriod): Result<Server>
Schedules a shutdown of the server
Link copied to clipboard
Starts the server
Link copied to clipboard
Stops the server