UltimateUI guide
Session & State
Retrieve details about a player's active interface state.
Access real-time session information, including active GUI names and snapshots containing mode flags like HUD, AutoClose, and Edit mode.
| Method | Returns | Description |
|---|---|---|
isGuiOpen(Player) | boolean | Checks if the player has any GUI or HUD active. |
getOpenGuiName(Player) | String | Returns the name of the active GUI or null if none. |
getSession(Player) | UiSession | Returns an immutable snapshot of the current session details. |
UiSession Object Fields#
getGuiName(): Name of the GUI.isHudMode(): true if it's an overlay.isAutoClose(): true if it handles its own termination.isEditMode(): true if the session is in editor mode.