felkesz kod laptoprol folytatom
This commit is contained in:
@@ -55,41 +55,26 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
|
||||
ItemStack undoKit = new ItemStack(Material.RED_STAINED_GLASS_PANE);
|
||||
ItemMeta undoMeta = undoKit.getItemMeta();
|
||||
if (saveMeta != null) {
|
||||
saveMeta.setDisplayName("§aSave Kit");
|
||||
saveKit.setItemMeta(saveMeta);
|
||||
} if (infoMeta != null) {
|
||||
infoMeta.setDisplayName("§fKit editor, you can customize your kit.");
|
||||
infoItem.setItemMeta(infoMeta);
|
||||
} if (undoMeta != null) {
|
||||
undoMeta.setDisplayName("§cUndo Changes");
|
||||
undoKit.setItemMeta(undoMeta);
|
||||
}
|
||||
|
||||
gui.setItem(0, saveKit);
|
||||
gui.setItem(1, saveKit);
|
||||
gui.setItem(2, saveKit);
|
||||
gui.setItem(3, infoItem);
|
||||
gui.setItem(4, infoItem);
|
||||
gui.setItem(5, infoItem);
|
||||
gui.setItem(6, undoKit);
|
||||
gui.setItem(7, undoKit);
|
||||
gui.setItem(8, undoKit);
|
||||
gui.setItem(9, saveKit);
|
||||
gui.setItem(10, saveKit);
|
||||
gui.setItem(11, saveKit);
|
||||
gui.setItem(12, infoItem);
|
||||
gui.setItem(13, infoItem);
|
||||
gui.setItem(14, infoItem);
|
||||
gui.setItem(15, undoKit);
|
||||
gui.setItem(16, undoKit);
|
||||
gui.setItem(17, undoKit);
|
||||
gui.setItem(18, saveKit);
|
||||
gui.setItem(19, saveKit);
|
||||
gui.setItem(20, saveKit);
|
||||
gui.setItem(21, infoItem);
|
||||
gui.setItem(22, infoItem);
|
||||
gui.setItem(23, infoItem);
|
||||
gui.setItem(24, undoKit);
|
||||
gui.setItem(25, undoKit);
|
||||
gui.setItem(26, undoKit);
|
||||
@@ -103,6 +88,18 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
|
||||
inv.setItem(getItemSlot("sword", "sword", player), swordsword);
|
||||
|
||||
infoMeta.setDisplayName("§fSword Kit");
|
||||
infoItem.setItemMeta(infoMeta);
|
||||
gui.setItem(3, infoItem);
|
||||
gui.setItem(4, infoItem);
|
||||
gui.setItem(5, infoItem);
|
||||
gui.setItem(12, infoItem);
|
||||
gui.setItem(13, infoItem);
|
||||
gui.setItem(14, infoItem);
|
||||
gui.setItem(21, infoItem);
|
||||
gui.setItem(22, infoItem);
|
||||
gui.setItem(23, infoItem);
|
||||
|
||||
player.openInventory(gui);
|
||||
break;
|
||||
case "uhc":
|
||||
@@ -125,6 +122,7 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
ItemStack uhcbow = new ItemStack(Material.BOW);
|
||||
ItemStack uhcarrow = new ItemStack(Material.ARROW, 16);
|
||||
ItemStack uhcshield = new ItemStack(Material.SHIELD);
|
||||
ItemStack uhcshield2 = new ItemStack(Material.SHIELD);
|
||||
ItemStack uhcplanks = new ItemStack(Material.OAK_PLANKS, 64);
|
||||
ItemStack uhcpickaxe = new ItemStack(Material.DIAMOND_PICKAXE);
|
||||
|
||||
@@ -146,6 +144,7 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
ItemMeta uhcmetawater2 = uhcwater2.getItemMeta();
|
||||
ItemMeta uhcmetawater3 = uhcwater3.getItemMeta();
|
||||
ItemMeta uhcmetawater4 = uhcwater4.getItemMeta();
|
||||
ItemMeta uhcmetashield2 = uhcshield2.getItemMeta();
|
||||
|
||||
uhcmetalava2.getPersistentDataContainer().set(new NamespacedKey(String.valueOf(this), "lavab"), PersistentDataType.STRING, "lava2uuid");
|
||||
uhclava2.setItemMeta(uhcmetalava2);
|
||||
@@ -159,6 +158,9 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
uhcmetawater4.getPersistentDataContainer().set(new NamespacedKey(String.valueOf(this), "waterd"), PersistentDataType.STRING, "water4uuid");
|
||||
uhcwater4.setItemMeta(uhcmetawater4);
|
||||
|
||||
uhcmetashield2.getPersistentDataContainer().set(new NamespacedKey(String.valueOf(this), "shieldb"), PersistentDataType.STRING, "shield2uuid");
|
||||
uhcshield2.setItemMeta(uhcmetashield2);
|
||||
|
||||
inv.setItem(getItemSlot("axe", "uhc", player), uhcaxe);
|
||||
inv.setItem(getItemSlot("sword", "uhc", player), uhcsword);
|
||||
inv.setItem(getItemSlot("lava", "uhc", player), uhclava);
|
||||
@@ -170,7 +172,7 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
inv.setItem(getItemSlot("bow", "uhc", player), uhcbow);
|
||||
inv.setItem(getItemSlot("shield", "uhc", player), uhcshield);
|
||||
inv.setItem(getItemSlot("arrow", "uhc", player), uhcarrow);
|
||||
inv.setItem(getItemSlot("shield2", "uhc", player), uhcshield);
|
||||
inv.setItem(getItemSlot("shield2", "uhc", player), uhcshield2);
|
||||
inv.setItem(getItemSlot("planks", "uhc", player), uhcplanks);
|
||||
inv.setItem(getItemSlot("pickaxe", "uhc", player), uhcpickaxe);
|
||||
inv.setItem(getItemSlot("lava2", "uhc", player), uhclava2);
|
||||
@@ -178,6 +180,18 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
|
||||
inv.setItem(getItemSlot("water3", "uhc", player), uhcwater3);
|
||||
inv.setItem(getItemSlot("water4", "uhc", player), uhcwater4);
|
||||
|
||||
infoMeta.setDisplayName("§fUHC Kit");
|
||||
infoItem.setItemMeta(infoMeta);
|
||||
gui.setItem(3, infoItem);
|
||||
gui.setItem(4, infoItem);
|
||||
gui.setItem(5, infoItem);
|
||||
gui.setItem(12, infoItem);
|
||||
gui.setItem(13, infoItem);
|
||||
gui.setItem(14, infoItem);
|
||||
gui.setItem(21, infoItem);
|
||||
gui.setItem(22, infoItem);
|
||||
gui.setItem(23, infoItem);
|
||||
|
||||
player.openInventory(gui);
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user