Replace GUI entry points with supplied DuneMenus presentation and JARVIS adapter
This commit is contained in:
parent
b11145bfbb
commit
c0d56632eb
56 changed files with 3274 additions and 14 deletions
|
|
@ -37,7 +37,7 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
modules=(DuneEss DuneLobby DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector)
|
||||
modules=(DuneEss DuneLobby DuneNPC DuneRealms-minecraft-only DuneRealmsGUI DuneTerrain JarvisConnector DuneMenus)
|
||||
mkdir -p plugin-artifacts
|
||||
for module in "${modules[@]}"; do
|
||||
gradle --no-daemon -p "$module" test jar
|
||||
|
|
|
|||
9
DuneMenus/README.md
Normal file
9
DuneMenus/README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# DuneMenus presentation
|
||||
|
||||
Owner-supplied DuneMenus layouts, wired to the existing JARVIS public API. The Java presentation uses the installed MC GUI canvas transport. Bedrock uses native Floodgate forms from the same definitions. No demo backend, ChestCommands or additional confirmation intermediary is installed.
|
||||
|
||||
Build and deployment are exclusively through the canonical plugin CI workflow. Keep DunerealmsGUI.jar (NPC/backend services and canvas transport), DuneNPC.jar, and jarvistranslator.jar. DuneMenus.jar contains the supplied presentation definitions and adapter. Do not run the historical installer that removes DunerealmsGUI.
|
||||
|
||||
`/dm` and the existing GUI commands open the replacement. Existing NPC contact/service callbacks are presented through ServiceMenu, preserving their permissions, quotes and revisions. `/sellall`, administration commands and scoreboard controls stay with their original handlers.
|
||||
|
||||
The source ZIP and its SHA-256 are recorded in REFERENCE.md. Previews are reference artwork, not evidence of a deployed or pixel-identical screen. Runtime rendering and every callback family must be verified before deployment is reported complete.
|
||||
3
DuneMenus/REFERENCE.md
Normal file
3
DuneMenus/REFERENCE.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Presentation reference: owner-supplied DuneMenus.zip.
|
||||
SHA-256: e0862cf79874d3c551f8fb2e563d1a4412a7176367c572a53f8667b0f470b358
|
||||
The versioned JARVIS adapter preserves authoritative quotes and revisions. Existing DuneRealmsGUI services and DuneNPC remain installed.
|
||||
23
DuneMenus/build.gradle.kts
Normal file
23
DuneMenus/build.gradle.kts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
plugins { java }
|
||||
group = "com.dunerealms"
|
||||
version = "2.0.1"
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://repo.papermc.io/repository/maven-public/")
|
||||
maven("https://repo.opencollab.dev/main/")
|
||||
}
|
||||
dependencies {
|
||||
compileOnly(project(":JarvisConnector"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||||
testImplementation("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
||||
testImplementation(project(":JarvisConnector"))
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
||||
compileOnly("org.geysermc.floodgate:api:2.2.5-SNAPSHOT") // same coordinates as DunerealmsGUI
|
||||
}
|
||||
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
|
||||
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }
|
||||
tasks.jar { archiveFileName.set("DuneMenus.jar") }
|
||||
tasks.processResources { filesMatching("plugin.yml") { expand("version" to project.version) } }
|
||||
|
||||
tasks.test { useJUnitPlatform() }
|
||||
7
DuneMenus/docs/BACKEND.md
Normal file
7
DuneMenus/docs/BACKEND.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Existing JARVIS backend
|
||||
|
||||
JarvisBackend invokes JarvisTranslator public methods. Mutations retain quoted listing identity/version/price, membership identity and authority revision, Guild key/version/fare, equipment quote IDs, cash denominations and request references. The central backend remains authoritative. JarvisConnector source is unchanged by this presentation integration.
|
||||
|
||||
Native NPC services retain their existing callbacks through DunerealmsGUI's SuppliedMenus bridge. The bridge preserves the original GuiSession claim and uses the new frontend only for presentation. A renderer session must not create another GuiSession that replaces that native claim.
|
||||
|
||||
No demo backend is packaged. An unavailable backend fails closed; no locally invented balances, missions or permissions are substituted.
|
||||
9
DuneMenus/docs/FULLSCREEN.md
Normal file
9
DuneMenus/docs/FULLSCREEN.md
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Canonical canvas integration
|
||||
|
||||
CanvasProvider supplies the new SuppliedDocument to DunerealmsGUI.presentSuppliedMenu. That method reuses the installed MCGUI canvas/HTML transport and its hosted resource pack. It does not call the old MenuDocument renderer. Java pages use direct slot actions; Bedrock receives the same menu definitions as native forms.
|
||||
|
||||
Read-only facts remain visible below the cards; long listing/journal pages grow so the canvas renderer can scroll the document. Dynamic labels/lore are escaped. Rendering failure and pack absence fail closed rather than substitute demo data.
|
||||
|
||||
Existing service callbacks are wrapped by the native GuiSession and the new menu's world/presentation generation guards. The transport must not create a second GuiSession for these supplied pages, because that would invalidate the authoritative native session.
|
||||
|
||||
CI builds DuneMenus.jar together with DunerealmsGUI.jar, DuneNPC.jar and the unchanged JARVIS backend. No independent live-file installation is part of this change.
|
||||
22
DuneMenus/docs/INTEGRATION.md
Normal file
22
DuneMenus/docs/INTEGRATION.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# GUI replacement acceptance and callback map
|
||||
|
||||
| Entry | New presentation | Existing authority |
|
||||
| --- | --- | --- |
|
||||
| Codex / drgui | HubMenu / SuppliedDocument | Existing codex item and command ownership |
|
||||
| Travel | TravelMenu constellation | JarvisTranslator Guild quotes, House key/version, dispatch |
|
||||
| Exchange | ExchangeMenu and native ServiceMenu | Central listing ID/version/price, receipt references, physical handoff |
|
||||
| Clan / company | OrganisationChoiceMenu, ClanMenu, CompanyMenu | Exact membership ID and authority revision |
|
||||
| Quest NPCs / quartermaster | ServiceMenu from original NPC callbacks | Original quest service, supply permit, reward claim |
|
||||
| Missions / Mentat | MissionsMenu / MentatMenu | Existing central journal and native turn-in contacts |
|
||||
| Spice | SpiceMenu and original NPC ServiceMenu | Existing Guild/Smuggler authority and settlement |
|
||||
| War / deed | WarMenu and original service callbacks | Current roster/draft/objective permission checks |
|
||||
| House / politics | HouseMenu / PoliticsMenu | Central allegiance version and decision funding authority |
|
||||
| Equipment | EquipmentMenu | Authoritative refit quote and physical application |
|
||||
| Bank / ATM | BankMenu / AtmMenu / TransferMenu | Existing Rihla APIs, denominations, transfer and redemption references |
|
||||
| Administration, sellall, scoreboard | Existing handlers | Unchanged backend handlers |
|
||||
|
||||
The new Java renderer consumes the ZIP menu definitions and direct slot callbacks; it does not use old MenuDocument selected-card pages. Existing native service models are wrapped without replacing their callback implementations. No new confirmation intermediary is added.
|
||||
|
||||
Local verification: 126 Java sources compile for release21 against cached Paper1.21.8 dependencies; 12 focused tests pass. Four resource-pack tests pass and validate item-card fonts/textures in the actual ZIP. Browser render fixtures are local design evidence only. Full CI, actual MCGUI renderer comparison and live NPC/function checks remain required before declaring deployment complete.
|
||||
|
||||
Known visual work remains: the supplied preview's bespoke illustrations are reference artwork, while the dedicated canvas currently implements the gold/emerald frame, themed scenes, direct card grid, travel constellation and journal/council/bank layouts. Do not describe this as pixel-identical preview parity or a live install.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.7 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 MiB |
BIN
DuneMenus/previews/set_c_atm_redeem.png
Normal file
BIN
DuneMenus/previews/set_c_atm_redeem.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
3
DuneMenus/settings.gradle.kts
Normal file
3
DuneMenus/settings.gradle.kts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
rootProject.name = "DuneMenus"
|
||||
include(":JarvisConnector")
|
||||
project(":JarvisConnector").projectDir = file("../JarvisConnector")
|
||||
137
DuneMenus/src/main/java/com/dunerealms/menus/AtmMenu.java
Normal file
137
DuneMenus/src/main/java/com/dunerealms/menus/AtmMenu.java
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import com.dunerealms.jarvis.DunemarkDenomination;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* ONE ATM, three tabs, 5 rows, no PIN, no confirmations.
|
||||
* Deposit : tap bills and coins, one click -> a new RIA ID is created and shown in the ID box.
|
||||
* Redeem : type an RIA ID, then one click pays it out as Cash or To bank.
|
||||
* Withdraw : tap bills and coins, one click takes the cash out of your own account.
|
||||
*/
|
||||
final class AtmMenu extends Menu {
|
||||
enum Tab { DEPOSIT, REDEEM, WITHDRAW }
|
||||
private static final int[] BILLS = {10, 11, 12, 19, 20};
|
||||
private static final int[] COINS = {14, 15, 16};
|
||||
private static final List<DunemarkDenomination> NOTES = List.of(DunemarkDenomination.NOTE_10, DunemarkDenomination.NOTE_20,
|
||||
DunemarkDenomination.NOTE_50, DunemarkDenomination.NOTE_100, DunemarkDenomination.NOTE_500);
|
||||
private static final List<DunemarkDenomination> COIN_VALUES = List.of(DunemarkDenomination.COIN_050,
|
||||
DunemarkDenomination.COIN_1DM, DunemarkDenomination.COIN_2DM);
|
||||
private Tab tab;
|
||||
private final List<DunemarkDenomination> selected = new ArrayList<>();
|
||||
private boolean recoveredDeposit;
|
||||
private String issued; // RIA ID created by the last deposit
|
||||
private String entered; // RIA ID typed on the Redeem tab
|
||||
|
||||
AtmMenu(DuneMenusPlugin plugin, Player p, Menu parent, Tab tab) { super(plugin, p, parent); this.tab = tab; }
|
||||
String id() { return tab == Tab.WITHDRAW ? "withdraw" : "atm"; }
|
||||
Skin skin() { return tab == Tab.REDEEM ? Skin.GOLD : Skin.TRAVEL; }
|
||||
String title() { return "Rihla ATM"; }
|
||||
String subtitle() { return switch (tab) {
|
||||
case DEPOSIT -> "Put in cash. You get an RIA ID to keep or give away.";
|
||||
case REDEEM -> "Got an RIA ID? Type it in and take the money as cash or to your bank.";
|
||||
case WITHDRAW -> "Take cash out of your own bank account."; }; }
|
||||
int rows() { return 5; }
|
||||
|
||||
private void tabButton(int slot, Material m, String label, Tab t) {
|
||||
var item = Ui.item(m, (tab == t ? "<green><b>" : "<gray>") + label);
|
||||
put(slot, tab == t ? Ui.glow(item) : item, c -> { tab = t; selected.clear(); redraw(); });
|
||||
}
|
||||
|
||||
private void add(int slot, DunemarkDenomination denomination) {
|
||||
put(slot, denomination.displayItem(), c -> {
|
||||
if (selected.size() < 36) selected.add(denomination);
|
||||
redraw();
|
||||
});
|
||||
}
|
||||
|
||||
void draw() {
|
||||
backdrop(Material.BLACK_STAINED_GLASS_PANE);
|
||||
for (int s : new int[]{3, 5, 6, 7, 8}) put(s, Ui.pane(Material.CYAN_STAINED_GLASS_PANE));
|
||||
tabButton(0, Material.EMERALD, "Deposit cash", Tab.DEPOSIT);
|
||||
tabButton(1, Material.NAME_TAG, "Redeem RIA ID", Tab.REDEEM);
|
||||
tabButton(2, Material.GOLD_INGOT, "Withdraw cash", Tab.WITHDRAW);
|
||||
back(36);
|
||||
if (tab == Tab.REDEEM) drawRedeem(); else drawCash();
|
||||
}
|
||||
|
||||
private void drawCash() {
|
||||
long minor = selected.stream().mapToLong(DunemarkDenomination::faceMinor).sum();
|
||||
boolean dep = tab == Tab.DEPOSIT;
|
||||
String verb = dep ? "Deposit" : "Withdraw";
|
||||
put(4, Ui.glow(Ui.item(Material.LIGHTNING_ROD, "<aqua><b>" + (minor == 0 ? "Choose bills and coins" : verb + " " + Ui.dm(minor)),
|
||||
minor == 0 ? "<gray>Tap the bills and coins below" : "<gray>Ready")));
|
||||
put(9, Ui.item(Material.GREEN_STAINED_GLASS_PANE, "<green><b>Bills"));
|
||||
put(13, Ui.item(Material.YELLOW_STAINED_GLASS_PANE, "<gold><b>Coins"));
|
||||
for (int i = 0; i < BILLS.length; i++) add(BILLS[i], NOTES.get(i));
|
||||
for (int i = 0; i < COINS.length; i++) add(COINS[i], COIN_VALUES.get(i));
|
||||
put(21, Ui.item(Material.RED_STAINED_GLASS_PANE, "<red><b>Clear"), c -> { selected.clear(); redraw(); });
|
||||
|
||||
put(24, minor == 0 ? Ui.item(Material.GRAY_DYE, "<gray>" + verb, "<dark_gray>Choose bills and coins first")
|
||||
: Ui.glow(Ui.item(dep ? Material.EMERALD : Material.GOLD_INGOT, "<green><b>" + verb + " " + Ui.dm(minor),
|
||||
dep ? "<gray>Creates a new RIA ID" : "<gray>From your bank account")),
|
||||
c -> {
|
||||
if (minor <= 0) return;
|
||||
var pieces = List.copyOf(selected);
|
||||
|
||||
if (dep) load(backend().atmCreateRia(player, pieces), r -> {
|
||||
say(new Backend.Result(r.ok(), r.message()));
|
||||
if (r.ok()) { issued = r.riaId(); selected.clear(); }
|
||||
redraw();
|
||||
});
|
||||
else load(backend().bankWithdraw(player, pieces), r -> {
|
||||
say(r);
|
||||
if (r.ok()) selected.clear();
|
||||
redraw();
|
||||
});
|
||||
});
|
||||
|
||||
// framed ID box
|
||||
for (int s : new int[]{28, 30}) put(s, Ui.pane(Material.YELLOW_STAINED_GLASS_PANE));
|
||||
if (dep) {
|
||||
drawIssuedVoucher();
|
||||
if (!recoveredDeposit) load(backend().atmRecentDeposit(player), voucher -> {
|
||||
recoveredDeposit = true;
|
||||
issued = voucher.isEmpty() ? null : voucher;
|
||||
drawIssuedVoucher();
|
||||
});
|
||||
} else {
|
||||
put(29, Ui.item(Material.NAME_TAG, "<gold><b>Rihla reference", "<gray>Loading…"));
|
||||
load(backend().bankAccount(player), a -> put(29, Ui.item(Material.NAME_TAG, "<gold><b>Rihla reference",
|
||||
"<white>" + a.accountNo(), "<gray>Postbank available: <white>" + (a.postbankAvailableMinor()==null?"Unavailable":Ui.dm(a.postbankAvailableMinor())))));
|
||||
}
|
||||
}
|
||||
|
||||
private void drawIssuedVoucher() {
|
||||
put(29, issued == null ? Ui.item(Material.NAME_TAG, "<gold><b>Your new RIA ID", "<dark_gray>Appears here after you deposit")
|
||||
: Ui.glow(Ui.item(Material.NAME_TAG, "<gold><b>Your new RIA ID", "<white>" + issued, "<gray>Give it to anyone to collect the money",
|
||||
"<yellow>Click to show in chat")),
|
||||
c -> { if (issued != null) player.sendMessage(Ui.text("<gold>RIA ID: <click:copy_to_clipboard:'" + issued + "'><white><u>" + issued + "</u></click>")); });
|
||||
}
|
||||
|
||||
private void drawRedeem() {
|
||||
put(4, Ui.glow(Ui.item(Material.LIGHTNING_ROD, "<aqua><b>Redeem an RIA ID", "<gray>1. Type the ID", "<gray>2. Pick Cash or To bank")));
|
||||
put(13, Ui.item(Material.WRITABLE_BOOK, entered == null ? "<yellow><b>Type RIA ID" : "<yellow><b>Change RIA ID",
|
||||
"<gray>Click, then type it in chat"), c -> {
|
||||
end();
|
||||
ChatPrompt.ask(player, "<gold>Type the RIA ID in chat:", text -> { if (text != null && text.matches("RIA-[A-F0-9]{32}")) entered = text; open(); });
|
||||
});
|
||||
for (int s : new int[]{28, 30}) put(s, Ui.pane(Material.YELLOW_STAINED_GLASS_PANE));
|
||||
put(29, Ui.item(Material.NAME_TAG, "<gold><b>RIA ID", entered == null ? "<dark_gray>Nothing entered yet" : "<white>" + entered));
|
||||
put(24, Ui.item(Material.GRAY_DYE, "<gray>Take as cash", "<dark_gray>Enter an RIA ID first"));
|
||||
put(26, Ui.item(Material.GRAY_DYE, "<gray>Send to my bank", "<dark_gray>Enter an RIA ID first"));
|
||||
if (entered == null) return;
|
||||
final String id = entered;
|
||||
load(backend().atmLookup(player, id), v -> {
|
||||
if (v == null) { put(22, Ui.item(Material.BARRIER, "<red>RIA ID not found")); return; }
|
||||
put(22, Ui.glow(Ui.item(Material.GOLD_BLOCK, "<gold><b>" + Ui.dm(v.amountMinor()), "<gray>From: <white>" + v.fromName())));
|
||||
put(24, Ui.glow(Ui.item(Material.GOLD_INGOT, "<green><b>Take as cash", "<gray>Bills and coins in your inventory")),
|
||||
c -> load(backend().atmRedeem(player, v, false), r -> { say(r); if (r.ok()) entered = null; redraw(); }));
|
||||
put(26, Ui.glow(Ui.item(Material.ENDER_CHEST, "<aqua><b>Send to my bank", "<gray>Credited to your account")),
|
||||
c -> load(backend().atmRedeem(player, v, true), r -> { say(r); if (r.ok()) entered = null; redraw(); }));
|
||||
});
|
||||
}
|
||||
}
|
||||
115
DuneMenus/src/main/java/com/dunerealms/menus/Backend.java
Normal file
115
DuneMenus/src/main/java/com/dunerealms/menus/Backend.java
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import com.dunerealms.jarvis.DunemarkDenomination;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
/**
|
||||
* Everything the menus need from the game backend (Jarvis). Menus never talk to Jarvis directly.
|
||||
* <p>Every method defaults to "not connected", so a backend only overrides what it supports and the
|
||||
* menu tells the player politely instead of faking data or touching money.
|
||||
* <p>Rules for implementers (full detail in docs/BACKEND.md):
|
||||
* money is minor units (1.00 DM = 100); futures may complete on any thread; there are NO confirm screens,
|
||||
* so each mutating call must be idempotent and safe against a double click.
|
||||
*/
|
||||
public interface Backend {
|
||||
/** Complete a future exceptionally with this to mean "this feature is not wired yet". */
|
||||
final class Unavailable extends RuntimeException { public Unavailable() { super("not wired", null, false, false); } }
|
||||
|
||||
record Result(boolean ok, String message) {
|
||||
public static Result yes(String m) { return new Result(true, m); }
|
||||
public static Result no(String m) { return new Result(false, m); }
|
||||
}
|
||||
/** fareMinor: -1 unknown (no fare line shown), 0 free, >0 price. */
|
||||
record World(String id, String name, String tagline, Material icon, int online, boolean up, long fareMinor, String keyId, int version) {}
|
||||
record Listing(String id, String title, Material icon, String seller, long priceMinor, int quantity, Integer kitVersion, boolean purchasable) {}
|
||||
record Page(List<Listing> items, boolean hasNext) {}
|
||||
record Org(String name, String role, int members, Long vaultMinor, String id, String revision, String warKey) {}
|
||||
record Member(UUID id, String name, String role) {}
|
||||
/** state is one of ACTIVE, AVAILABLE, DONE. */
|
||||
record TurnIn(String action, String role, String metric, String label, int quantity) {}
|
||||
record Mission(String id, String title, Material icon, String state, int percent, boolean claimable, String summary, Long revision, TurnIn turnIn) {}
|
||||
record Spice(int carried, int guildCount, int smugglerCount, boolean guildEnabled, boolean smugglerEnabled, int pendingCount) {}
|
||||
/** roster has 8 entries; blank = empty slot. */
|
||||
record War(String title, List<String> roster, List<String> status, boolean canLaunch, boolean editable, UUID draftId) {}
|
||||
record Decision(String id, String title, Material icon, String cost, String effect, boolean allowed, String npcRole, String sourceAccount, String feeMinor) {}
|
||||
record House(String id, String name, String motto, Material banner, int version) {}
|
||||
/** Rihla account. reservedMinor = amount+tax locked by pending outgoing transfers. collectableMinor = incoming transfers waiting to be collected. */
|
||||
record Account(String accountNo, Long postbankAvailableMinor, long reservedMinor, long collectableMinor) {}
|
||||
/** direction is "OUT" (you sent it, still pending, cancellable) or "IN" (waiting for you to collect). taxMinor is only set for OUT. */
|
||||
record Transfer(String id, String direction, String counterparty, long amountMinor, long taxMinor, String when) {}
|
||||
record Refit(boolean possible, String itemName, Material icon, List<String> costs, String note, UUID quoteId) {}
|
||||
|
||||
private static <T> CompletableFuture<T> na() { return CompletableFuture.failedFuture(new Unavailable()); }
|
||||
|
||||
// ---- wallet / travel ----
|
||||
default CompletableFuture<Long> balance(Player p) { return na(); }
|
||||
default List<ItemStack> loreArchive() { return List.of(); }
|
||||
default Result claimCodex(Player p) { return Result.no("The Imperial Codex is temporarily unavailable."); }
|
||||
default CompletableFuture<String> mentat(Player p) { return na(); }
|
||||
default CompletableFuture<ItemStack> savedItem(Player p, UUID id, int revision) { return na(); }
|
||||
default boolean inGuildLobby(Player p) { return false; }
|
||||
default Result returnToGuild(Player p) { return Result.no("Guild return is temporarily unavailable."); }
|
||||
default CompletableFuture<List<World>> worlds(Player p) { return na(); }
|
||||
default CompletableFuture<Result> book(Player p, World destination) { return na(); }
|
||||
// ---- exchange (tab is "buy" | "kits" | "mine") ----
|
||||
default CompletableFuture<Page> listings(Player p, String tab, int page) { return na(); }
|
||||
default CompletableFuture<Result> buy(Player p, Listing offer, int qty) { return na(); }
|
||||
default CompletableFuture<Result> withdraw(Player p, Listing offer) { return na(); }
|
||||
/** Lists the item in the player's main hand at the given unit price. */
|
||||
default CompletableFuture<Result> sell(Player p, ItemStack expected, int slot, long priceMinor) { return na(); }
|
||||
default CompletableFuture<Result> collectPurchases(Player p) { return na(); }
|
||||
// ---- organisations (kind is "clan" | "company") ----
|
||||
default CompletableFuture<List<Org>> organisations(Player p, String kind) { return na(); }
|
||||
default CompletableFuture<Org> org(Player p, String kind, String id) { return na(); }
|
||||
default CompletableFuture<List<Member>> members(Player p, String kind, String id) { return na(); }
|
||||
/** action ids used by the menus: home, claims, vault, allies, wars, invite, transactions, roles, war-transport */
|
||||
default CompletableFuture<Result> orgAction(Player p, String kind, String action, Org shown) { return na(); }
|
||||
// ---- missions ----
|
||||
default CompletableFuture<List<Mission>> missions(Player p) { return na(); }
|
||||
default CompletableFuture<Result> missionTurnIn(Player p, Mission mission) { return na(); }
|
||||
default CompletableFuture<Result> missionAction(Player p, Mission mission, boolean claim) { return na(); }
|
||||
// ---- spice (channel is "guild" | "smuggler") ----
|
||||
default CompletableFuture<Spice> spice(Player p) { return na(); }
|
||||
default CompletableFuture<Result> sellSpice(Player p, String channel, int shownCount) { return na(); }
|
||||
default CompletableFuture<Result> collectSpice(Player p) { return na(); }
|
||||
// ---- war muster ----
|
||||
default CompletableFuture<War> war(Player p) { return na(); }
|
||||
default CompletableFuture<List<Member>> warCandidates(Player p, War war) { return na(); }
|
||||
default CompletableFuture<Result> warAssign(Player p, War war, int slot, UUID candidateOrNull) { return na(); }
|
||||
default CompletableFuture<Result> warSave(Player p, War war) { return na(); }
|
||||
default CompletableFuture<Result> warLaunch(Player p, War war) { return na(); }
|
||||
// ---- politics / house / equipment ----
|
||||
default CompletableFuture<List<Decision>> decisions(Player p) { return na(); }
|
||||
default CompletableFuture<Result> enact(Player p, Decision decision) { return na(); }
|
||||
default CompletableFuture<List<House>> houses(Player p) { return na(); }
|
||||
default CompletableFuture<Result> chooseHouse(Player p, House house) { return na(); }
|
||||
default CompletableFuture<Refit> refitQuote(Player p) { return na(); }
|
||||
default CompletableFuture<Result> refit(Player p, Refit quote) { return na(); }
|
||||
// ---- Rihla money transfer (Corrino Group). Used by the Bank screen and the ATM. ----
|
||||
// Rules (docs/BACKEND.md): private account per user; sending creates a pending transfer that reserves
|
||||
// amount + tax (1% up to and including 3,000 DM, 5% above, rounded UP to the next cent); the recipient
|
||||
// receives the full amount and collects it in-game; cancelling releases the reservation.
|
||||
default CompletableFuture<Account> bankAccount(Player p) { return na(); }
|
||||
/** ATM, tab 1. The player taps bills and coins; the menu sends the total. Backend takes the cash and CREATES a new RIA ID worth that amount. */
|
||||
record Issued(boolean ok, String message, String riaId) {}
|
||||
default CompletableFuture<Issued> atmCreateRia(Player p, List<DunemarkDenomination> pieces) { return na(); }
|
||||
/** ATM, tab 2. Look an RIA ID up so the menu can show the amount before payout. Return null/exceptional if unknown. */
|
||||
record Voucher(String riaId, long amountMinor, String fromName) {}
|
||||
default CompletableFuture<String> atmRecentDeposit(Player p) { return na(); }
|
||||
default CompletableFuture<Voucher> atmLookup(Player p, String riaId) { return na(); }
|
||||
/** ATM, tab 2. Pay the RIA ID out: toBank=false gives cash, toBank=true credits the player's bank account. One click, no confirmation. */
|
||||
default CompletableFuture<Result> atmRedeem(Player p, Voucher voucher, boolean toBank) { return na(); }
|
||||
/** Cash withdrawal from the RIA account. The menu builds amountMinor from the bills and coins the player tapped.
|
||||
* The backend debits the account and gives the player that cash (however cash is represented), or returns Result.no (insufficient funds, inventory full...). */
|
||||
default CompletableFuture<Result> bankWithdraw(Player p, List<DunemarkDenomination> pieces) { return na(); }
|
||||
default CompletableFuture<List<Transfer>> bankTransfers(Player p) { return na(); }
|
||||
default CompletableFuture<Result> bankSend(Player p, UUID to, long amountMinor) { return na(); }
|
||||
default CompletableFuture<Result> bankCancel(Player p, String transferId) { return na(); }
|
||||
/** transferId -1 collects every incoming transfer. */
|
||||
default CompletableFuture<Result> bankCollect(Player p, String transferId) { return na(); }
|
||||
}
|
||||
61
DuneMenus/src/main/java/com/dunerealms/menus/BankMenu.java
Normal file
61
DuneMenus/src/main/java/com/dunerealms/menus/BankMenu.java
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import java.util.List;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/**
|
||||
* 6 rows. Left: your private account. Centre: Send money, Withdraw cash, Collect transfers.
|
||||
* Right: pending transfers: outgoing ones cancel on click (releases the reservation), incoming ones collect on click.
|
||||
*/
|
||||
final class BankMenu extends Menu {
|
||||
private static final int[] LIST = {15, 16, 24, 25, 33, 34};
|
||||
|
||||
BankMenu(DuneMenusPlugin plugin, Player p, Menu parent) { super(plugin, p, parent); }
|
||||
String id() { return "bank"; }
|
||||
Skin skin() { return Skin.GOLD; }
|
||||
String title() { return "Rihla · Money Transfer"; }
|
||||
String subtitle() { return "Corrino Group. Your private account. Send and collect transfers."; }
|
||||
int rows() { return 6; }
|
||||
|
||||
void draw() {
|
||||
backdrop(Material.BLACK_STAINED_GLASS_PANE);
|
||||
for (int i = 0; i < 9; i += 2) put(i, Ui.pane(Material.CYAN_STAINED_GLASS_PANE));
|
||||
for (int s : new int[]{12, 14, 21, 23, 30, 32}) put(s, Ui.pane(Material.YELLOW_STAINED_GLASS_PANE));
|
||||
back(45);
|
||||
put(13, Ui.item(Material.WRITABLE_BOOK, "<yellow><b>Send money</b>", "<gray>Choose an amount, pick a person.", "<gray>Tax: " + Rihla.rateText()),
|
||||
t -> go(new TransferMenu(plugin, player, this, 10_000)));
|
||||
put(22, Ui.item(Material.PAPER, "<green><b>Withdraw cash</b>", "<gray>Take bills and coins from your account"),
|
||||
t -> go(new AtmMenu(plugin, player, this, AtmMenu.Tab.WITHDRAW)));
|
||||
put(31, Ui.item(Material.CHEST, "<green>Collect transfers", "<gray>Loading…"));
|
||||
put(47, Ui.item(Material.BOOK, "<aqua>Statement", "<gray>Opens your full statement in User CP"), t -> {
|
||||
player.sendMessage(Ui.text("<gold>Your statement: <click:open_url:'https://cp.dunerealms.com/#bank/bank-overview'><aqua><u>open User CP</u></click>"));
|
||||
});
|
||||
put(11, Ui.item(Material.NAME_TAG, "<gold><b>Rihla reference", "<gray>Loading…"));
|
||||
load(backend().bankAccount(player), a -> {
|
||||
put(11, Ui.item(Material.NAME_TAG, "<gold><b>Rihla reference", "<gray>Account: <white>" + a.accountNo()));
|
||||
put(20, Ui.glow(Ui.item(Material.GOLD_BLOCK, "<gold><b>Postbank available", "<white>" + (a.postbankAvailableMinor()==null?"Unavailable":Ui.dm(a.postbankAvailableMinor())))));
|
||||
put(29, Ui.item(Material.IRON_BARS, "<gray>Reserved for transfers", "<white>" + Ui.dm(a.reservedMinor()), "<dark_gray>Amount plus tax, until collected"));
|
||||
var collect = Ui.item(Material.CHEST, "<green><b>Collect transfers", "<gray>Waiting: <gold>" + Ui.dm(a.collectableMinor()),
|
||||
a.collectableMinor() > 0 ? "<yellow>Click to collect everything" : "<dark_gray>Nothing waiting");
|
||||
put(31, a.collectableMinor() > 0 ? Ui.glow(collect) : collect, t -> act(backend().bankCollect(player, null)));
|
||||
});
|
||||
load(backend().bankTransfers(player), list -> {
|
||||
for (int i = 0; i < Math.min(LIST.length, list.size()); i++) row(LIST[i], list.get(i));
|
||||
if (list.isEmpty()) put(24, Ui.item(Material.PAPER, "<gray>No pending transfers"));
|
||||
});
|
||||
put(49, Ui.item(Material.OAK_SIGN, "<gold>Transfer tax", "<gray>1% of the amount up to 3,000 DM", "<gray>5% of the amount above 3,000 DM",
|
||||
"<gray>The recipient gets the full amount."));
|
||||
}
|
||||
|
||||
private void row(int slot, Backend.Transfer t) {
|
||||
if (t.direction().equals("OUT"))
|
||||
put(slot, Ui.item(Material.ORANGE_DYE, "<gold>To " + t.counterparty() + " · " + Ui.dm(t.amountMinor()),
|
||||
"<gray>Tax: <white>" + Ui.dm(t.taxMinor()), "<gray>" + t.when(), "", "<yellow>Click to cancel and release the reservation"),
|
||||
c -> act(backend().bankCancel(player, t.id())));
|
||||
else
|
||||
put(slot, Ui.glow(Ui.item(Material.LIME_DYE, "<green>From " + t.counterparty() + " · " + Ui.dm(t.amountMinor()),
|
||||
"<gray>" + t.when(), "", "<yellow>Click to collect")),
|
||||
c -> act(backend().bankCollect(player, t.id())));
|
||||
}
|
||||
}
|
||||
53
DuneMenus/src/main/java/com/dunerealms/menus/Bedrock.java
Normal file
53
DuneMenus/src/main/java/com/dunerealms/menus/Bedrock.java
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.IntConsumer;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
/** Floodgate forms built from the same menu definition. */
|
||||
final class Bedrock {
|
||||
private Bedrock() {}
|
||||
|
||||
static boolean is(Player p) {
|
||||
if (!Bukkit.getPluginManager().isPluginEnabled("floodgate")) return false;
|
||||
try { return Impl.is(p); } catch (LinkageError missing) { return false; }
|
||||
}
|
||||
|
||||
static void show(JavaPlugin plugin, Player p, String title, String subtitle, List<String> info, List<Card> cards,
|
||||
IntConsumer pick, Runnable closed) {
|
||||
try { Impl.show(plugin, p, title, subtitle, info, cards, pick, closed); }
|
||||
catch (LinkageError missing) { closed.run(); }
|
||||
}
|
||||
|
||||
private static String label(Card c) {
|
||||
List<String> lore = c.lore().stream().filter(s -> !s.isBlank()).limit(2).toList();
|
||||
String sub = String.join(" · ", lore);
|
||||
if (sub.length() > 60) sub = sub.substring(0, 57) + "…";
|
||||
return sub.isEmpty() ? c.title() : c.title() + "\n" + sub;
|
||||
}
|
||||
|
||||
private static final class Impl {
|
||||
static boolean is(Player p) { return org.geysermc.floodgate.api.FloodgateApi.getInstance().isFloodgatePlayer(p.getUniqueId()); }
|
||||
|
||||
static void show(JavaPlugin plugin, Player p, String title, String subtitle, List<String> info, List<Card> cards,
|
||||
IntConsumer pick, Runnable closed) {
|
||||
StringBuilder content = new StringBuilder(subtitle == null ? "" : subtitle);
|
||||
for (String line : info) { if (content.length() > 0) content.append('\n'); content.append(line); }
|
||||
var form = org.geysermc.cumulus.form.SimpleForm.builder().title(title).content(content.toString());
|
||||
for (Card c : cards) form.button(label(c));
|
||||
form.closedOrInvalidResultHandler(() -> {
|
||||
if (plugin.isEnabled()) Bukkit.getScheduler().runTask(plugin, closed);
|
||||
});
|
||||
form.validResultHandler(result -> {
|
||||
int index = result.clickedButtonId();
|
||||
if (!plugin.isEnabled()) return;
|
||||
Bukkit.getScheduler().runTask(plugin, () -> {
|
||||
if (p.isOnline() && index >= 0 && index < cards.size()) pick.accept(cards.get(index).slot());
|
||||
});
|
||||
});
|
||||
if (!org.geysermc.floodgate.api.FloodgateApi.getInstance().sendForm(p.getUniqueId(), form.build())) closed.run();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
package com.dunerealms.menus;
|
||||
import java.util.*;
|
||||
import java.util.function.IntConsumer;
|
||||
import org.bukkit.entity.Player;
|
||||
/** Uses the existing installed MC GUI canvas transport, with the supplied menu definitions. */
|
||||
final class CanvasProvider implements FullscreenProvider {
|
||||
private final DuneMenusPlugin plugin;
|
||||
CanvasProvider(DuneMenusPlugin plugin){this.plugin=plugin;}
|
||||
public boolean open(Player player,Screen screen,IntConsumer select,Runnable close){
|
||||
var services=plugin.getServer().getPluginManager().getPlugin("DunerealmsGUI");
|
||||
if(services==null||!services.isEnabled())return false;
|
||||
Map<Integer,Runnable> actions=new HashMap<>();for(Card card:screen.cards())actions.put(card.slot(),()->select.accept(card.slot()));
|
||||
try{return Boolean.TRUE.equals(services.getClass().getMethod("presentSuppliedMenu",Player.class,String.class,String.class,Map.class,Runnable.class).invoke(services,player,screen.title(),SuppliedDocument.html(screen.id(),screen.title(),screen.subtitle(),screen.cards(),screen.info()),actions,close));}
|
||||
catch(ReflectiveOperationException failure){plugin.getLogger().warning("Menu canvas unavailable: "+failure.getClass().getSimpleName());return false;}
|
||||
}
|
||||
}
|
||||
6
DuneMenus/src/main/java/com/dunerealms/menus/Card.java
Normal file
6
DuneMenus/src/main/java/com/dunerealms/menus/Card.java
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/** One clickable thing on a menu, in renderer-neutral form (used for Bedrock forms and fullscreen). */
|
||||
public record Card(int slot, String title, List<String> lore, String material) {}
|
||||
37
DuneMenus/src/main/java/com/dunerealms/menus/ChatPrompt.java
Normal file
37
DuneMenus/src/main/java/com/dunerealms/menus/ChatPrompt.java
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import io.papermc.paper.event.player.AsyncChatEvent;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.function.Consumer;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
/** One-line text input for Java and Bedrock alike: the next chat line is captured (not broadcast). "cancel" aborts. */
|
||||
final class ChatPrompt implements Listener {
|
||||
private static final Map<UUID, Consumer<String>> WAIT = new ConcurrentHashMap<>();
|
||||
private final DuneMenusPlugin plugin;
|
||||
ChatPrompt(DuneMenusPlugin plugin) { this.plugin = plugin; }
|
||||
|
||||
static void ask(Player p, String prompt, Consumer<String> done) {
|
||||
WAIT.put(p.getUniqueId(), done);
|
||||
p.sendMessage(Ui.text(prompt + " <dark_gray>(type <white>cancel</white> to go back)"));
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onChat(AsyncChatEvent e) {
|
||||
var cb = WAIT.remove(e.getPlayer().getUniqueId());
|
||||
if (cb == null) return;
|
||||
e.setCancelled(true);
|
||||
String text = PlainTextComponentSerializer.plainText().serialize(e.message()).trim();
|
||||
Bukkit.getScheduler().runTask(plugin, () -> cb.accept(text.equalsIgnoreCase("cancel") ? null : text));
|
||||
}
|
||||
|
||||
@EventHandler public void onQuit(PlayerQuitEvent e) { WAIT.remove(e.getPlayer().getUniqueId()); }
|
||||
}
|
||||
41
DuneMenus/src/main/java/com/dunerealms/menus/ClanMenu.java
Normal file
41
DuneMenus/src/main/java/com/dunerealms/menus/ClanMenu.java
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/** 6 rows. The crest in the middle, a plus-shaped spine of duties, and four diagonal spokes. */
|
||||
final class ClanMenu extends Menu {
|
||||
ClanMenu(DuneMenusPlugin plugin, Player p, Menu parent, String organisationId) { super(plugin, p, parent); this.organisationId = organisationId; }
|
||||
String id() { return "clan"; }
|
||||
Skin skin() { return Skin.CLAN; }
|
||||
String title() { return "House & Clan · Hearth"; }
|
||||
String subtitle() { return "“A House is only as strong as its people.”"; }
|
||||
int rows() { return 6; }
|
||||
private Backend.Org shown;
|
||||
private final String organisationId;
|
||||
|
||||
private void spoke(int slot, Material m, String name, String sub, String action) {
|
||||
put(slot, Ui.item(m, name, "<gray>" + sub), t -> act(backend().orgAction(player, "clan", action, shown)));
|
||||
}
|
||||
|
||||
void draw() {
|
||||
backdrop(Material.BLACK_STAINED_GLASS_PANE);
|
||||
for (int s : new int[]{13, 21, 23, 31}) put(s, Ui.pane(Material.GREEN_STAINED_GLASS_PANE));
|
||||
back(45);
|
||||
put(22, Ui.item(Material.WHITE_BANNER, "<green><b>Your clan", "<gray>Loading…"));
|
||||
load(backend().org(player, "clan", organisationId), o -> {
|
||||
shown = o;
|
||||
put(22, Ui.glow(Ui.item(Material.WHITE_BANNER, "<green><b>" + o.name(),
|
||||
"<gray>Role: <white>" + o.role(), "<gray>Members: <white>" + o.members(), "<gray>Vault: <gold>" + (o.vaultMinor() == null ? "Unavailable" : Ui.dm(o.vaultMinor())))));
|
||||
});
|
||||
put(4, Ui.item(Material.PLAYER_HEAD, "<green>Members", "<gray>Your roster"), t -> go(new MembersMenu(plugin, player, this, "clan", organisationId)));
|
||||
spoke(40, Material.RED_BED, "<green>Clan home", "Teleport to base", "home");
|
||||
spoke(20, Material.FILLED_MAP, "<gold>Territory", "Claims and borders", "claims");
|
||||
spoke(24, Material.ENDER_CHEST, "<gold>Vault", "Shared funds", "vault");
|
||||
spoke(11, Material.LEAD, "<aqua>Allies", "Friendly clans", "allies");
|
||||
spoke(15, Material.DIAMOND_SWORD, "<red>Wars", "Active conflicts", "wars");
|
||||
put(29, Ui.item(Material.IRON_SWORD, "<red>War muster", "<gray>Set your team"), t -> go(new WarMenu(plugin, player, this)));
|
||||
spoke(37, Material.BOOK, "<green>Message of the day", "Read your clan message", "motd");
|
||||
spoke(33, Material.WRITABLE_BOOK, "<green>Invite", "Bring someone in", "invite");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
package com.dunerealms.menus;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
/** 6 rows. Three labelled bands: Finance, People, Operations. Reads left to right like a ledger. */
|
||||
final class CompanyMenu extends Menu {
|
||||
CompanyMenu(DuneMenusPlugin plugin, Player p, Menu parent, String organisationId) { super(plugin, p, parent); this.organisationId = organisationId; }
|
||||
String id() { return "company"; }
|
||||
Skin skin() { return Skin.COMPANY; }
|
||||
String title() { return "Company · Ledger Hall"; }
|
||||
String subtitle() { return "“Fortunes are built in ledgers before they are built in stone.”"; }
|
||||
int rows() { return 6; }
|
||||
private Backend.Org shown;
|
||||
private final String organisationId;
|
||||
|
||||
private void tool(int slot, Material m, String name, String sub, String action) {
|
||||
put(slot, Ui.item(m, name, "<gray>" + sub), t -> act(backend().orgAction(player, "company", action, shown)));
|
||||
}
|
||||
|
||||
void draw() {
|
||||
backdrop(Material.BLACK_STAINED_GLASS_PANE);
|
||||
for (int r = 1; r <= 3; r++) for (int c = 1; c <= 8; c++) put(r * 9 + c, Ui.pane(Material.CYAN_STAINED_GLASS_PANE));
|
||||
back(45);
|
||||
put(9, Ui.item(Material.GOLD_INGOT, "<gold><b>Finance"));
|
||||
put(18, Ui.item(Material.PLAYER_HEAD, "<aqua><b>People"));
|
||||
put(27, Ui.item(Material.LIGHTNING_ROD, "<white><b>Operations"));
|
||||
put(4, Ui.item(Material.COPPER_BLOCK, "<aqua><b>Your company", "<gray>Loading…"));
|
||||
load(backend().org(player, "company", organisationId), o -> {
|
||||
shown = o;
|
||||
put(4, Ui.glow(Ui.item(Material.COPPER_BLOCK, "<aqua><b>" + o.name(), "<gray>Role: <white>" + o.role(), "<gray>Members: <white>" + o.members())));
|
||||
put(10, Ui.item(Material.GOLD_INGOT, "<gold>Balance", "<white>" + (o.vaultMinor() == null ? "Unavailable" : Ui.dm(o.vaultMinor()))));
|
||||
});
|
||||
tool(11, Material.ENDER_CHEST, "<gold>Vault", "Move funds", "vault");
|
||||
tool(12, Material.BOOK, "<gold>Transactions", "Recent activity", "transactions");
|
||||
put(19, Ui.item(Material.PLAYER_HEAD, "<aqua>Members", "<gray>Your team"), t -> go(new MembersMenu(plugin, player, this, "company", organisationId)));
|
||||
tool(20, Material.NAME_TAG, "<aqua>Roles", "Who can do what", "roles");
|
||||
tool(22, Material.BOOK, "<aqua>Message of the day", "Read your company message", "motd");
|
||||
tool(21, Material.WRITABLE_BOOK, "<aqua>Invite", "Bring someone in", "invite");
|
||||
put(28, Ui.item(Material.EMERALD, "<green>Exchange", "<gray>Buy and sell"), t -> go(new ExchangeMenu(plugin, player, this)));
|
||||
put(29, Ui.item(Material.BLAZE_POWDER, "<gold>Spice buyers", "<gray>Sell and collect"), t -> go(new SpiceMenu(plugin, player, this)));
|
||||
tool(30, Material.MINECART, "<white>War transport", "Move your people", "war-transport");
|
||||
tool(31, Material.LODESTONE, "<white>Home block", "Claims and deed", "claims");
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue

Staff