Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
eabfead5da
Commit
a90e75e182
@ -413,8 +413,8 @@ public class TNTSimulator {
|
||||
SWInventory swInventory = new SWInventory(player, 54, "TNT konfigurieren");
|
||||
|
||||
// Change Count of spawned TNT
|
||||
swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> {
|
||||
setCount(count + (clickType.isShiftClick() ? 10 : 1));
|
||||
swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
|
||||
setCount(count + (clickType.isShiftClick() ? 5 : 1));
|
||||
editTNT();
|
||||
}));
|
||||
SWItem countItem = new SWItem(Material.TNT, "§7TNT-Anzahl §8- §e" + count, LORE, false, clickType -> changeCount(player, "Anzahl TNT", count, c -> {
|
||||
@ -423,8 +423,8 @@ public class TNTSimulator {
|
||||
}, this::editTNT));
|
||||
countItem.getItemStack().setAmount(count);
|
||||
swInventory.setItem(10, countItem);
|
||||
swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> {
|
||||
setCount(count - (clickType.isShiftClick() ? 10 : 1));
|
||||
swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
|
||||
setCount(count - (clickType.isShiftClick() ? 5 : 1));
|
||||
editTNT();
|
||||
}));
|
||||
|
||||
@ -445,8 +445,8 @@ public class TNTSimulator {
|
||||
}));
|
||||
|
||||
// Change FuseTicks
|
||||
swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", clickType -> {
|
||||
setFuseTicks(fuseTicks + 1);
|
||||
swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e+5"), false, clickType -> {
|
||||
setFuseTicks(fuseTicks + (clickType.isShiftClick() ? 5 : 1));
|
||||
editTNT();
|
||||
}));
|
||||
SWItem fuseTickItem = new SWItem(Material.CLOCK, "§7Lebensdauer §8- §e" + fuseTicks, LORE, false, clickType -> changeCount(player, "Fuse-Ticks", fuseTicks, tick -> {
|
||||
@ -455,8 +455,8 @@ public class TNTSimulator {
|
||||
}, this::editTNT));
|
||||
fuseTickItem.getItemStack().setAmount(Math.max(fuseTicks, 1));
|
||||
swInventory.setItem(12, fuseTickItem);
|
||||
swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", clickType -> {
|
||||
setFuseTicks(fuseTicks - 1);
|
||||
swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> {
|
||||
setFuseTicks(fuseTicks - (clickType.isShiftClick() ? 5 : 1));
|
||||
editTNT();
|
||||
}));
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren