Class ServerEventRegistry
java.lang.Object
journeymap.api.v2.common.event.ServerEventRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<GlobalWaypointEvent> Fired for global waypoint CRUD.static final Event<GlobalWaypointGroupEvent> Fired for global waypoint group CRUD.static final Event<ServerOptionsRegistryEvent> Fired on the server when it is time for server plugins to register their configuration options.static final Event<PlayerRadarUpdateEvent> Fired per (receiver, remote-player) pair on radar broadcast tick (UPDATE) and per receiver on disconnect/world-unload (REMOVE).static final Event<TeleportEvent> The event is only fired on the server when a user teleports via waypoint teleport or context menu teleport.static final Event<WaypointPendingActionEvent> Fired when a recipient accepts or declines a pending waypoint.static final Event<WaypointPendingReceivedEvent> Fired once per recipient before a pending waypoint entry is stored.static final Event<WaypointShareSubmitEvent> Fired on the server when a player (or addon via IServerAPI) submits a waypoint share. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
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
Fired when a recipient accepts or declines a pending waypoint. Cancellable: cancel to block the action (waypoint stays in pending). -
GLOBAL_WAYPOINT_EVENT
Fired for global waypoint CRUD. CREATE and UPDATE are cancellable. -
GLOBAL_WAYPOINT_GROUP_EVENT
Fired for global waypoint group CRUD. CREATE and UPDATE are cancellable. -
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. -
TELEPORT_EVENT
The event is only fired on the server when a user teleports via waypoint teleport or context menu teleport. -
OPTIONS_REGISTRY_EVENT
Fired on the server when it is time for server plugins to register their configuration options. Create yourOptioninstances in the handler; they self-register and then appear in the Server Admin options screen for admins/ops to edit. Not cancellable.
-
-
Constructor Details
-
ServerEventRegistry
public ServerEventRegistry()
-