forked from unimatrix/web
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 @@ final class QuestMenus implements Listener {
|
|||
private final JavaPlugin plugin;private final HouseBridge bridge;private final Consumer<Player> back;
|
||||
private final Map<UUID,UUID> pending=new HashMap<>();
|
||||
private final Map<UUID,PolQuestNpc.Role> roleScope=new HashMap<>();
|
||||
private static final class Panel implements InventoryHolder {
|
||||
private static final class Panel implements DuneMenuInventory {
|
||||
final UUID owner;final GuiSession gate;final Map<Integer,Runnable> actions=new HashMap<>();final List<BedrockForms.Choice> choices=new ArrayList<>();final Inventory inventory;final String title;String description="Your current J.A.R.V.I.S. mission journal";
|
||||
Panel(Player p,String title){owner=p.getUniqueId();gate=new GuiSession(owner);this.title=title;inventory=Bukkit.createInventory(this,54,Component.text(title,NamedTextColor.GOLD));}
|
||||
public Inventory getInventory(){return inventory;}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff