Class ServerEventRegistry

java.lang.Object
journeymap.api.v2.server.event.ServerEventRegistry

public class ServerEventRegistry extends Object
Server only events will be here.
  • Field Details

    • WAYPOINT_SHARE_SUBMIT_EVENT

      public static final Event<WaypointShareSubmitEvent> WAYPOINT_SHARE_SUBMIT_EVENT
      Fired on the server when a player (or addon via IServerAPI) submits a waypoint share. Cancellable: cancel to block the entire share (nothing stored, no notifications sent).
    • WAYPOINT_PENDING_RECEIVED_EVENT

      public static final Event<WaypointPendingReceivedEvent> WAYPOINT_PENDING_RECEIVED_EVENT
      Fired once per recipient before a pending waypoint entry is stored. Cancellable: cancel to skip this specific recipient; other recipients are unaffected.
    • WAYPOINT_PENDING_ACTION_EVENT

      public static final Event<WaypointPendingActionEvent> WAYPOINT_PENDING_ACTION_EVENT
      Fired when a recipient accepts or declines a pending waypoint. Cancellable: cancel to block the action (waypoint stays in pending).
    • GLOBAL_WAYPOINT_EVENT

      public static final Event<GlobalWaypointEvent> GLOBAL_WAYPOINT_EVENT
      Fired for global waypoint CRUD. CREATE and UPDATE are cancellable.
    • GLOBAL_WAYPOINT_GROUP_EVENT

      public static final Event<GlobalWaypointGroupEvent> GLOBAL_WAYPOINT_GROUP_EVENT
      Fired for global waypoint group CRUD. CREATE and UPDATE are cancellable.
  • Constructor Details

    • ServerEventRegistry

      public ServerEventRegistry()