From 91b4fa1d53dbbf2bea32b9f197e216beaff99b00 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 16 Dec 2019 20:15:14 +0100 Subject: [PATCH] Schemdownloadlink (untested) --- .../src/de/steamwar/schematicsystem/commands/GUI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java index 9d6ba9e..3b8f8f0 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java @@ -121,19 +121,23 @@ class GUI { p.closeInventory(); changeItem(p, schem); }); + if(schem.availible()) inv.setItem(4, SWItem.getMaterial("CAULDRON_ITEM"), "§e" + schem.getSchemType().name(), Arrays.asList("§7Zum Ändern", "§7anklicken"), false, click -> { p.closeInventory(); changeType(p, schem); }); + inv.setItem(5, SWItem.getMaterial(""), "§eDownload", click -> { p.closeInventory(); SchematicCommand.download(p, schem); }); + inv.setItem(6, SWItem.getMaterial("SKULL_ITEM"), "§eMitglieder", click -> { p.closeInventory(); delmembers(p, schem); }); + inv.setItem(8, SWItem.getDye(1), (byte) 1, "§cLöschen", click -> { p.closeInventory(); delete(p, schem);