Converge all Exchange menu entry points on the native service
All checks were successful
DuneRealms Resourcepack CI / resourcepack (push) Successful in 3m19s
DuneRealms Plugin CI / plugins (push) Successful in 4m49s

This commit is contained in:
unimatrixgit 2026-11-29 11:31:33 +01:00
commit 313e6c712b
2 changed files with 16 additions and 80 deletions

View file

@ -239,6 +239,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
if(id.equals(selection(data))&&data.has("keyId")&&!data.get("keyId").isJsonNull()){mentat(p,data);return;}
fetch(p,id,data.get("version").getAsInt(),UUID.randomUUID(),saved->{p.sendMessage(Component.text("House allegiance confirmed in J.A.R.V.I.S.",NamedTextColor.GREEN));mentat(p,saved);});
}
public void openExchangeMenu(Player player){if(!Bukkit.isPrimaryThread()||!player.isOnline())throw new IllegalStateException("Exchange entry requires an online player on the server thread");exchange.open(player);}
private void mentat(Player p,JsonObject data){
String house=selection(data);if(house==null){select(p,data,null);return;}
JsonObject mentor=data.getAsJsonObject("mentat");String name=mentor.get("name").getAsString();int index=Arrays.asList(IDS).indexOf(house);

View file

@ -1,6 +1,6 @@
name: DunerealmsGUI
main: com.dunerealms.gui.DuneGUI
version: 1.1.35
version: 1.1.36
api-version: '1.21.8'
depend: [JarvisTranslator]
softdepend: [Citizens, MCGUI, DecentHolograms, DuneLobby, DuneCore, DuneEss, DuneNPC, Vault, floodgate, ViaVersion]