Add CommonCore.DATA and CMDs

This commit is contained in:
2025-05-29 17:12:32 +02:00
parent 527bc39d38
commit 37f6723542
24 changed files with 104 additions and 21 deletions
@@ -20,6 +20,7 @@
package de.steamwar.teamserver.command;
import de.steamwar.command.SWCommand;
import de.steamwar.data.CMDs;
import de.steamwar.inventory.SWAnvilInv;
import de.steamwar.inventory.SWInventory;
import de.steamwar.inventory.SWItem;
@@ -208,7 +209,7 @@ public class MaterialCommand extends SWCommand implements Listener {
Search search = searchMap.get(p);
swInventory.setItem(0, new SWItem(Material.ARROW, Builder.MESSAGE.parse("MATERIAL_BACK", p), clickType -> {
materialGUI(p);
}).setCustomModelData(1));
}).setCustomModelData(CMDs.BACK));
swInventory.setItem(10, new SWItem(Material.NAME_TAG, Builder.MESSAGE.parse("MATERIAL_SEARCH_NAME", p) + Builder.MESSAGE.parse("MATERIAL_SEARCH_VALUE", p, search.name), clickType -> {
SWAnvilInv swAnvilInv = new SWAnvilInv(p, Builder.MESSAGE.parse("MATERIAL_SEARCH_NAME", p), search.name);
swAnvilInv.setCallback(s -> {