Use website branding and protect players while menus are open
This commit is contained in:
parent
88ddf3fde3
commit
13df172a7e
1 changed files with 67 additions and 19 deletions
|
|
@ -19,7 +19,7 @@ import net.kyori.adventure.text.format.NamedTextColor;
|
|||
final class SpiceMenus implements Listener {
|
||||
private final JavaPlugin plugin;private final HouseBridge bridge;private final Consumer<Player> back;
|
||||
private final Set<UUID> busy=new HashSet<>();
|
||||
private static final class Panel implements InventoryHolder{
|
||||
private static final class Panel implements DuneMenuInventory{
|
||||
final UUID owner;final Inventory inventory;final Map<Integer,Runnable> actions=new HashMap<>();final GuiSession gate;
|
||||
Panel(Player p){owner=p.getUniqueId();gate=new GuiSession(owner);inventory=Bukkit.createInventory(this,27,Component.text("Arrakis · Spice buyer",NamedTextColor.GOLD));}public Inventory getInventory(){return inventory;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff