Use website branding and protect players while menus are open

This commit is contained in:
unimatrixgit 2026-11-28 01:17:47 +01:00
commit 13df172a7e

View file

@ -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;}
}