Class OpenMenuAction
java.lang.Object
io.github.lucfr1746.llibrary.action.Action
io.github.lucfr1746.llibrary.action.list.OpenMenuAction
Represents an action that opens a custom GUI menu for a player.
This action uses the InventoryManager to open a menu based on its ID.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenMenuAction
(String menuID) Constructs an OpenMenuAction with the specified menu ID. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.bukkit.entity.Player player) Executes the action by opening the menu associated with the given ID for the specified player.
-
Constructor Details
-
OpenMenuAction
Constructs an OpenMenuAction with the specified menu ID.- Parameters:
menuID
- The ID of the menu to open.
-
-
Method Details