From 727c74a35baa5b327b6489ea2092b6646b97a536 Mon Sep 17 00:00:00 2001 From: Yaruma3341 Date: Wed, 8 Jan 2020 17:13:48 +0100 Subject: [PATCH] bugfixes --- .../src/de/steamwar/schematicsystem/commands/GUI.java | 2 +- .../de/steamwar/schematicsystem/commands/SchematicCommand.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java index b301821..3fbd253 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/GUI.java @@ -184,7 +184,7 @@ class GUI { List> schemList = new LinkedList<>(); List filteredSchems = new ArrayList<>(); - for(Schematic currentSchem : filteredSchems) { + for(Schematic currentSchem : Schematic.getSchemsAccessibleByUser(player.getUniqueId())) { if(currentSchem.getSchemName().toLowerCase().contains(search.toLowerCase())) filteredSchems.add(currentSchem); } diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index a78502f..51a8cf8 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -438,6 +438,7 @@ public class SchematicCommand implements CommandExecutor { player.sendMessage("§8/§eschem gui §8- §7Öffnet die Schematic-GUI"); player.sendMessage("§8/§eschem list §8- §7Zeigt dir deine Schematics an"); player.sendMessage("§8/§eschem list public §8- §7Zeigt alle Public-Schematics"); + player.sendMessage("§8/§eschem search §8[§7Stichwort§8] - §7Sucht nach passenden Schematics"); player.sendMessage("§8/§eschem load §8[§7Schematic§8] - §7Lädt eine Schematic"); player.sendMessage("§8/§eschem save §8[§7Schematic§8] - §7Speichert dein Clipboard als Schematic"); player.sendMessage("§8/§eschem changetype §8[§7Schematic§8] - §7Ändert die Art deiner Schematic");