SingleplayerRequestAccessEvent
Package:
com.hypixel.hytale.server.core.modules.singleplayerImplements:IEvent<Void>Cancellable: No
Standard event dispatched when singleplayer mode requests access control. Carries an Access object representing the access request.
Fields / Accessors
Section titled “Fields / Accessors”| Field | Type | Accessor | Mutable | Nullable |
|---|---|---|---|---|
access | Access | getAccess() | No | No |
- access — The access request from the singleplayer module.
Fired By
Section titled “Fired By”Dispatch location not identified in decompiled source. This event may be dispatched by game modules not yet mapped.
Listening
Section titled “Listening”getEventRegistry().register(SingleplayerRequestAccessEvent.class, event -> { Access access = event.getAccess(); // Handle singleplayer access request});Related Events
Section titled “Related Events”PlayerSetupConnectEvent— The general connection event. Singleplayer access may occur before the standard connection flow.