web/gui-common/src/main/java/com/example/dunegui/PlanetSigils.java
unimatrixgit 9dcd9b084a 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.
2026-10-27 19:44:22 +01:00

11 lines
931 B
Java

package com.example.dunegui;
import org.bukkit.NamespacedKey;
import org.bukkit.inventory.ItemStack;
import java.util.Map;
public final class PlanetSigils {
private static final Map<String,String> IDS=Map.of("arrakis","serevan","caladan","pelareth","giedi_prime","varkesh","kaitain","orivane","sigma_draconis_iv","nivareth");
private static final Map<String,String> LABELS=Map.of("arrakis","Arrakduin","caladan","Kaladam","giedi_prime","Giedermark","kaitain","Kaiterhof","sigma_draconis_iv","Sigmadraken IV");
public static String label(String id){String name=LABELS.getOrDefault(id,id);return name.isEmpty()?name:Character.toUpperCase(name.charAt(0))+name.substring(1);}
public static ItemStack apply(ItemStack item,String id){String name=IDS.get(id);if(name!=null){var meta=item.getItemMeta();meta.setItemModel(new NamespacedKey("dunerealms","planet_"+name));item.setItemMeta(meta);}return item;}
private PlanetSigils(){}
}