UltimateUIDocs
Archived upstream docs · Features depend on the installed plugin version; not all features have been verified.

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.

MethodReturnsDescription
closeGui(Player)voidCloses the entire UI session for the player.
closeGui(Player, String name)booleanCloses only the specified GUI name. Returns true if found.
closeGui(Iterable)intBulk closes all UI sessions. Returns the count of closed sessions.
closeGui(Iterable, String name)intBulk closes a specific GUI name for a group.