Add CommandGUI redstoneListener Wand
Dieser Commit ist enthalten in:
Ursprung
dd54a99fb4
Commit
6d8faea32e
@ -53,8 +53,6 @@ public class CommandGUI implements CommandExecutor, Listener {
|
||||
OPEN_INVS.remove(player);
|
||||
});
|
||||
|
||||
inv.setItem(37, getMaterial("GLASS_PANE", "THIN_GLASS"), "§7Platzhalter", clickType -> {
|
||||
});
|
||||
inv.setItem(43, getMaterial("GLASS_PANE", "THIN_GLASS"), "§7Platzhalter", clickType -> {
|
||||
});
|
||||
inv.setItem(42, Material.NETHER_STAR, "§7Bau GUI Item", Arrays.asList("§7Du kannst dieses Item zum Öffnen der BauGUI nutzen", "§7oder Doppel F (Swap hands) drücken."), false, clickType -> {
|
||||
@ -78,6 +76,12 @@ public class CommandGUI implements CommandExecutor, Listener {
|
||||
player.performCommand("sim wand");
|
||||
});
|
||||
|
||||
ItemStack redstoneWand = wand(player, RedstoneListener.WAND, "§8/§7redstonetester", null, "");
|
||||
inv.setItem(37, redstoneWand, clickType -> {
|
||||
player.closeInventory();
|
||||
player.performCommand("redstonetester");
|
||||
});
|
||||
|
||||
inv.setItem(40, getMaterial("WOODEN_AXE", "WOOD_AXE"), "§eWorldedit Axt", getNoPermsLore(Arrays.asList("§8//§7wand"), player, "§cDu hast keine Worldeditrechte", Permission.worldedit), false, clickType -> {
|
||||
if (Welt.noPermission(player, Permission.world))
|
||||
return;
|
||||
@ -571,7 +575,7 @@ public class CommandGUI implements CommandExecutor, Listener {
|
||||
ItemMeta meta = base.getItemMeta();
|
||||
List<String> lore = meta.getLore();
|
||||
lore.add(command);
|
||||
if (Welt.noPermission(player, permission))
|
||||
if (permission != null && Welt.noPermission(player, permission))
|
||||
lore.add(noPermissionMessage);
|
||||
meta.setLore(lore);
|
||||
base.setItemMeta(meta);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren