From 10906d93d701de0b49822d4a521b3e0baa4f6f2f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 7 Sep 2019 12:54:07 +0200 Subject: [PATCH] Fixing no privates in test mode --- src/de/steamwar/fightsystem/commands/GUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/fightsystem/commands/GUI.java b/src/de/steamwar/fightsystem/commands/GUI.java index 94393ca..41aba44 100644 --- a/src/de/steamwar/fightsystem/commands/GUI.java +++ b/src/de/steamwar/fightsystem/commands/GUI.java @@ -95,7 +95,7 @@ public class GUI { inv.setItem(8, Material.REDSTONE, "§eÖffentliches " + Config.GameName, (ClickType click) -> schemDialog(p, true)); if(Config.OnlyPublicSchematics){ inv.setItem(0, Material.INK_SACK, (byte)8, "§7Keine privaten Schematics erlaubt", (ClickType click)->{}); - }else if(Schematic.getSchemsOfType(p.getUniqueId(), Config.SchematicType).isEmpty()){ + }else if(Schematic.getSchemsOfType(p.getUniqueId(), Config.SchematicType).isEmpty() && !Config.test()){ inv.setItem(0, Material.INK_SACK, (byte)8, "§7Kein privates " + Config.GameName + " vorhanden", (ClickType click)->{}); }else{ inv.setItem(0, Material.CAULDRON_ITEM, "§ePrivates " + Config.GameName, (ClickType click) -> schemDialog(p, false));