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.

@FunctionalInterface public interface ServerStartedCallback
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
    Modifier and Type
    Field
    Description
    The event instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the server has fully started.
  • Field Details

  • Method Details

    • onServerStarted

      void onServerStarted(TaleServer server)
      Called when the server has fully started.
      Parameters:
      server - the server instance that has started