Class ServerEventRegistry

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

public class ServerEventRegistry extends Object
  • 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.
    • PLAYER_RADAR_UPDATE_EVENT

      public static final Event<PlayerRadarUpdateEvent> PLAYER_RADAR_UPDATE_EVENT
      Fired per (receiver, remote-player) pair on radar broadcast tick (UPDATE) and per receiver on disconnect/world-unload (REMOVE). Cancellable for both. Listeners on UPDATE may mutate visibility.
  • Constructor Details

    • ServerEventRegistry

      public ServerEventRegistry()