From 19cf2207ff9fbd731932b262416c1d3a07ed0c1c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 2 May 2021 20:23:10 +0200 Subject: [PATCH 1/2] Fix AutoStartGuiItem and RedstoneTesterGuiItem --- .../bausystem/features/autostart/AutoStartGuiItem.java | 3 ++- .../features/redstonetester/RedstoneTesterGuiItem.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java index 64bcf929..243c80ac 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java @@ -45,8 +45,9 @@ public class AutoStartGuiItem extends GuiItem { @Override public boolean click(ClickType click, Player p) { + p.closeInventory(); p.performCommand("timer"); - return true; + return false; } @Override diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java index 8763767d..1c90dd80 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java @@ -46,8 +46,9 @@ public class RedstoneTesterGuiItem extends GuiItem { @Override public boolean click(ClickType click, Player p) { + p.closeInventory(); p.performCommand("redstonetester"); - return true; + return false; } @Override From 79659a21ceff8667980deda3863c9061bb9bafea Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 2 May 2021 20:26:25 +0200 Subject: [PATCH 2/2] Fix AutoStartGuiItem and RedstoneTesterGuiItem --- .../steamwar/bausystem/features/autostart/AutoStartGuiItem.java | 2 +- .../features/redstonetester/RedstoneTesterGuiItem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java index 243c80ac..a3013c96 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/autostart/AutoStartGuiItem.java @@ -40,7 +40,7 @@ public class AutoStartGuiItem extends GuiItem { @Override public ItemStack getItem(Player player) { - return new SWItem(Material.BLAZE_ROD, "§eAutostartTimer", Arrays.asList("§eRechtsklick Block §8- §7Starte den Timer"), false, null).getItemStack(); + return new SWItem(Material.FIREWORK_STAR, "§eAutostartTimer", Arrays.asList("§eRechtsklick Block §8- §7Starte den Timer"), false, null).getItemStack(); } @Override diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java index 1c90dd80..9650ad49 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/redstonetester/RedstoneTesterGuiItem.java @@ -41,7 +41,7 @@ public class RedstoneTesterGuiItem extends GuiItem { @Override public ItemStack getItem(Player player) { - return new SWItem(Material.BLAZE_ROD, ColorConfig.HIGHLIGHT + "Redstonetester", Arrays.asList(ColorConfig.HIGHLIGHT + "Linksklick Block " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Setzt die 1. Position", ColorConfig.HIGHLIGHT + "Rechtsklick Block " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Setzt die 2. Position", ColorConfig.HIGHLIGHT + "Shift-Rechtsklick Luft " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Zurücksetzten"), false, null).getItemStack(); + return new SWItem(Material.REPEATER, ColorConfig.HIGHLIGHT + "Redstonetester", Arrays.asList(ColorConfig.HIGHLIGHT + "Linksklick Block " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Setzt die 1. Position", ColorConfig.HIGHLIGHT + "Rechtsklick Block " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Setzt die 2. Position", ColorConfig.HIGHLIGHT + "Shift-Rechtsklick Luft " + ColorConfig.OTHER + "-" + ColorConfig.BASE + " Zurücksetzten"), false, null).getItemStack(); } @Override