Package dev.polv.taleapi.event.server
Interface ServerStartedCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Called when the server has fully started.
This event fires after the server has completed all initialization and is ready to accept player connections. Use this for tasks that require the server to be fully operational.
This event is NOT cancellable. The server is already started when this event fires.
Example Usage
ServerStartedCallback.EVENT.register(server -> {
System.out.println("Server has started!");
// Start scheduled tasks, announce server is online, etc.
});
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidonServerStarted(TaleServer server) Called when the server has fully started.
-
Field Details
-
EVENT
The event instance. Use this to register listeners and fire the event.
-
-
Method Details
-
onServerStarted
Called when the server has fully started.- Parameters:
server- the server instance that has started
-