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); } }; }