From 6eef99db65830a58c25e6c59801af73a21dc58d6 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 22 Aug 2022 18:51:07 +0200 Subject: [PATCH] Hotfix Nr. 1 --- .../commands/SchematicCommand.java | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java index cb935bf..42a9f8a 100644 --- a/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java +++ b/SchematicSystem_Core/src/de/steamwar/schematicsystem/commands/SchematicCommand.java @@ -106,7 +106,7 @@ public class SchematicCommand extends SWCommand { } @Register({"info", "public"}) - public void schemInfoPublic(Player player, @Validator("isDirValidator") @Mapper("publicMapper") SchematicNode node) { + public void schemInfoPublic(Player player, @Mapper("publicMapper") SchematicNode node) { schemInfo(player, node); } @@ -599,12 +599,7 @@ public class SchematicCommand extends SWCommand { @Override public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) { - SchematicNode result = SchematicNode.getNodeFromPath(getUser((Player) commandSender), s); - if (result == null || !result.isDir()) { - return null; - } else { - return result; - } + return SchematicNode.getNodeFromPath(getUser((Player) commandSender), s); } }; } @@ -621,12 +616,7 @@ public class SchematicCommand extends SWCommand { @Override public SchematicNode map(CommandSender commandSender, String[] previousArguments, String s) { - SchematicNode result = publicCommandTypeMapper.map(commandSender, previousArguments, s); - if (result == null || !result.isDir()) { - return null; - } else { - return result; - } + return publicCommandTypeMapper.map(commandSender, previousArguments, s); } }; }