UltimateUI guide
Closing UIs
Terminate active UI sessions or specific pages.
Manage the UI lifecycle by closing either the entire session or a specific GUI page, with support for clearing screens for multiple players at once.
| Method | Returns | Description |
|---|---|---|
closeGui(Player) | void | Closes the entire UI session for the player. |
closeGui(Player, String name) | boolean | Closes only the specified GUI name. Returns true if found. |
closeGui(Iterable) | int | Bulk closes all UI sessions. Returns the count of closed sessions. |
closeGui(Iterable, String name) | int | Bulk closes a specific GUI name for a group. |