From 6807bbcdde0a2b5e267432327c85e6710c5e1383 Mon Sep 17 00:00:00 2001 From: unimatrixgit <95320811+unimatrixgit@users.noreply.github.com> Date: Sun, 29 Nov 2026 12:03:40 +0100 Subject: [PATCH] Add requested adviser flavour and explicit claim refusal wording --- DuneMenus/docs/COMPACT-MENU-FOLLOWUP.md | 4 ++++ .../src/main/java/com/dunerealms/gui/OrganisationMenus.java | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/DuneMenus/docs/COMPACT-MENU-FOLLOWUP.md b/DuneMenus/docs/COMPACT-MENU-FOLLOWUP.md index df88694b..9110718c 100644 --- a/DuneMenus/docs/COMPACT-MENU-FOLLOWUP.md +++ b/DuneMenus/docs/COMPACT-MENU-FOLLOWUP.md @@ -9,3 +9,7 @@ Exchange navigation uses small toolbar controls. The misleading Sell navigation GUI version 1.1.37; actual plugin descriptor must agree. Pack content and backend JARs remain unchanged. Local renderer verification covers 15 families and 152 action hitboxes, text containment, centred icons, 28 long listings, Details and toolbar controls. Synthetic previews are not connected-client acceptance. Exact canonical CI and guarded rollout are required before live claims. Blocked claim-expansion buttons now report the same existing capacity/home/permission reason and reopen the claims view, rather than silently closing. No guard, entitlement, deed or claim record is bypassed. The specific Arrakis report (North worked, All did not) still requires actual estate/capacity evidence before attributing it to a backend fault. + +Owner-selected blocked-expansion feedback uses: I'm sorry, Dave. I cannot let you do that: . Required resulting size and unlocked limit remain accurate; a too-large expansion is not mislabelled as an already-full estate. + +A single adviser description includes the owner-requested subtle 'Indeed.' reference; no new action or repeated message. diff --git a/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java index 0ccaabe6..ba3ac7c5 100644 --- a/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java +++ b/DuneRealmsGUI/src/main/java/com/dunerealms/gui/OrganisationMenus.java @@ -26,7 +26,7 @@ final class OrganisationMenus implements Listener { public Inventory getInventory(){return inventory;} } OrganisationMenus(JavaPlugin plugin,HouseBridge bridge,Consumer mentat,Consumer travel,Consumer house,Consumer quests,Consumer exchange,Consumer spice,java.util.function.Predicate artwork){this.plugin=plugin;this.bridge=bridge;this.mentat=mentat;this.travel=travel;this.house=house;this.quests=quests;this.exchange=exchange;this.spice=spice;this.artwork=artwork;Bukkit.getPluginManager().registerEvents(this,plugin);} - void console(Player p){var panel=panel(p,"Imperial Codex",0);if(p.getWorld().getName().equals("arrakis"))put(panel,28,"Spice buyers","Spacing Guild · Smuggler · P&O payout",Material.ORANGE_DYE,()->spice.accept(p));put(panel,34,"Exchange","Buy, sell and collect your purchases",Material.CHEST,()->exchange.accept(p));var exchangeIcon=new ItemStack(Material.CHEST);var exchangeMeta=exchangeIcon.getItemMeta();exchangeMeta.displayName(Component.text("Exchange",NamedTextColor.GOLD));exchangeMeta.lore(List.of(Component.text("Buy · Sell · Add held item",NamedTextColor.GRAY)));exchangeIcon.setItemMeta(exchangeMeta);panel.inventory.setItem(34,exchangeIcon);put(panel,31,"Mission journal","Personal Experience and Reputation",Material.WRITABLE_BOOK,()->quests.accept(p));put(panel,4,"Item lore archive","Preview the shared item lore cards",Material.WRITABLE_BOOK,()->lore(p));put(panel,19,"Clan","Your clan and Home Block",Material.GREEN_BANNER,()->open(p,"clans"));put(panel,22,"Company","Your companies and Home Blocks",Material.CYAN_BANNER,()->open(p,"companies"));put(panel,25,"POL","Your current political offices",Material.PURPLE_BANNER,()->open(p,"offices"));put(panel,37,"Your Mentat","Your personal briefing",Material.BOOK,()->mentat.accept(p));put(panel,40,"Spacing Guild","Transport and boarding windows",Material.COMPASS,()->travel.accept(p));put(panel,43,"Your House","Your allegiance and adviser",Material.NETHER_STAR,()->house.accept(p));close(panel,p);show(p,panel);} + void console(Player p){var panel=panel(p,"Imperial Codex",0);if(p.getWorld().getName().equals("arrakis"))put(panel,28,"Spice buyers","Spacing Guild · Smuggler · P&O payout",Material.ORANGE_DYE,()->spice.accept(p));put(panel,34,"Exchange","Buy, sell and collect your purchases",Material.CHEST,()->exchange.accept(p));var exchangeIcon=new ItemStack(Material.CHEST);var exchangeMeta=exchangeIcon.getItemMeta();exchangeMeta.displayName(Component.text("Exchange",NamedTextColor.GOLD));exchangeMeta.lore(List.of(Component.text("Buy · Sell · Add held item",NamedTextColor.GRAY)));exchangeIcon.setItemMeta(exchangeMeta);panel.inventory.setItem(34,exchangeIcon);put(panel,31,"Mission journal","Personal Experience and Reputation",Material.WRITABLE_BOOK,()->quests.accept(p));put(panel,4,"Item lore archive","Preview the shared item lore cards",Material.WRITABLE_BOOK,()->lore(p));put(panel,19,"Clan","Your clan and Home Block",Material.GREEN_BANNER,()->open(p,"clans"));put(panel,22,"Company","Your companies and Home Blocks",Material.CYAN_BANNER,()->open(p,"companies"));put(panel,25,"POL","Your current political offices",Material.PURPLE_BANNER,()->open(p,"offices"));put(panel,37,"Your Mentat","Your personal briefing. Indeed.",Material.BOOK,()->mentat.accept(p));put(panel,40,"Spacing Guild","Transport and boarding windows",Material.COMPASS,()->travel.accept(p));put(panel,43,"Your House","Your allegiance and adviser",Material.NETHER_STAR,()->house.accept(p));close(panel,p);show(p,panel);} void open(Player p,String kind){ if(!busy.add(p.getUniqueId()))return; Bukkit.getScheduler().runTaskAsynchronously(plugin,()->{JsonObject data=null;try{data=bridge.organisations(p.getUniqueId());}catch(Exception ignored){}JsonObject result=data;if(!plugin.isEnabled())return; @@ -92,7 +92,7 @@ final class OrganisationMenus implements Listener { String[] directions={"north","east","south","west","all"};int[] slots={13,23,31,21,22};int[] additions={width,height,width,height,2*width+2*height+4}; boolean manage=row.get("canManage").getAsBoolean(),home=row.has("homeBlock")&&!row.get("homeBlock").isJsonNull(); for(int i=0;i0&&next<=capacity;String blocked=!manage?"Current organisation management required":!home?"Set your Home Block first":capacity==0?"Claim entitlement unavailable":"Needs "+next+" chunks; unlocked limit "+capacity; - put(screen,slots[i],"Expand "+direction,allowed?"Add "+addition+" adjacent chunks\nResult: "+next+" / "+capacity+"\nReview before applying":blocked,allowed?Material.LIME_DYE:Material.GRAY_DYE,()->{if(!allowed){p.sendMessage(blocked);claims(p,data,kind,row);return;}var confirm=panel(p,"Confirm claim expansion",!kind.equals("clans"));put(confirm,13,"Expand "+direction,"Add "+addition+" chunks around the current estate\nResult: "+next+" / "+capacity+" chunks\nExisting Home Block stays in place\nForeign claims and active wars are checked",Material.MAP,()->claims(p,data,kind,row));put(confirm,30,"Confirm expansion","Use unlocked capacity; no new tier purchase",Material.LIME_DYE,()->perform(p,kind,row,"expand-claim",direction));put(confirm,32,"Cancel","Leave the estate unchanged",Material.ARROW,()->claims(p,data,kind,row));show(p,confirm);}); + put(screen,slots[i],"Expand "+direction,allowed?"Add "+addition+" adjacent chunks\nResult: "+next+" / "+capacity+"\nReview before applying":blocked,allowed?Material.LIME_DYE:Material.GRAY_DYE,()->{if(!allowed){p.sendMessage("I'm sorry, Dave. I cannot let you do that: "+blocked+".");claims(p,data,kind,row);return;}var confirm=panel(p,"Confirm claim expansion",!kind.equals("clans"));put(confirm,13,"Expand "+direction,"Add "+addition+" chunks around the current estate\nResult: "+next+" / "+capacity+" chunks\nExisting Home Block stays in place\nForeign claims and active wars are checked",Material.MAP,()->claims(p,data,kind,row));put(confirm,30,"Confirm expansion","Use unlocked capacity; no new tier purchase",Material.LIME_DYE,()->perform(p,kind,row,"expand-claim",direction));put(confirm,32,"Cancel","Leave the estate unchanged",Material.ARROW,()->claims(p,data,kind,row));show(p,confirm);}); } put(screen,45,"Back","Organisation",Material.ARROW,()->organisation(p,data,kind,row));show(p,screen); }