Integrate shared planetary inventories and account sales with the current site
Merge the supplied inventory/exchange package into the latest DuneRealms source. Keep community-reward receipts, verified UUID linking, native menus and current website artwork, Dutch naming and account controls. Wire the inventory/sales adapters into the real CP session and verified-link schema, with isolated reads and honest unconfigured states. Preserve lobby/ender separation and Core-owned atomic exchange checkpoints. Validation: website build and 56 tests; 12 inventory/market adapter tests; Core/Essentials and NPC/Terrain/Lobby builds and tests; local browser inspection of the themed inventory, mannequin and History of sales with fictional fixtures. Paper 1.21.8 source only: live 1.21.4 binaries and databases are unchanged.
This commit is contained in:
parent
73e1bc8b75
commit
9dcd9b084a
1 changed files with 3246 additions and 978 deletions
|
|
@ -64,7 +64,7 @@ final class EssentialsBasics implements CommandExecutor, TabCompleter, Listener
|
|||
choices.add(new NativeMenus.Choice("Spawn","Return to this world's spawn.",()->p.performCommand("spawn")));
|
||||
choices.add(new NativeMenus.Choice("Guild servers","Travel using existing Solaris fares and permissions.",()->p.performCommand("duneess travel")));
|
||||
choices.add(new NativeMenus.Choice("Solaris","Show your balance.",()->p.performCommand("duneess balance")));
|
||||
choices.add(new NativeMenus.Choice("CHOAM Exchange","Buy, list and reclaim items.",()->p.performCommand("exchange")));
|
||||
choices.add(new NativeMenus.Choice("Koopkring Exchange","Buy, list and reclaim items.",()->p.performCommand("exchange")));
|
||||
choices.add(new NativeMenus.Choice("Help","Open the Dune Field Guide.",()->p.performCommand("duneess help menu")));
|
||||
NativeMenus.show(plugin,p,"DuneRealms Essentials","Solaris: "+plugin.economy().format(plugin.economy().getBalance(p)),choices);
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ final class EssentialsBasics implements CommandExecutor, TabCompleter, Listener
|
|||
if(args.length!=1) throw new IllegalArgumentException("Usage: /tpa <online player>");
|
||||
Player target=Bukkit.getPlayerExact(args[0]);
|
||||
if(target==null || target.equals(p) || !p.canSee(target)) throw new IllegalArgumentException("Choose another online player on this server.");
|
||||
if(!target.getWorld().equals(p.getWorld())) throw new IllegalArgumentException("Use Guild travel to reach that player's world first.");
|
||||
if(!target.getWorld().equals(p.getWorld())) throw new IllegalArgumentException("Use Vaerkring travel to reach that player's world first.");
|
||||
requests.put(target.getUniqueId(),new Request(p.getUniqueId(),System.nanoTime()+60_000_000_000L));
|
||||
target.sendMessage(p.getName()+" requests to teleport to you. /tpaccept or /tpdeny (60 seconds).");
|
||||
p.sendMessage("Teleport request sent.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff