Interface PerPlayerGUI
public interface PerPlayerGUI
Represents a GUI obtained through
GUIManager.createPerPlayerGUI(GUILayout, ChatPluginServerPlayer)
that features a player and a task ID that unloads the GUI after GUIManager.getPerPlayerGUIsUnloadTime()
of inactivity (GUIOpenEvent, EmptySlotClickEvent, IconClickEvent).-
Method Summary
Modifier and TypeMethodDescriptionGets this GUI's player.longGets this GUI's unload task's ID.voidunload(boolean quit) Deprecated.Internal use only.
-
Method Details
-
getPlayer
ChatPluginServerPlayer getPlayer()Gets this GUI's player.- Returns:
- GUI's player
-
getUnloadTaskID
long getUnloadTaskID()Gets this GUI's unload task's ID.- Returns:
- GUI's unload task's ID
-
unload
Deprecated.Internal use only.Manually unloads this GUI and removes it fromGUIManager.getGUIs().- Parameters:
quit- Whether the player quit the server
-