Dieser Commit ist enthalten in:
Ursprung
3766265fc7
Commit
6eef99db65
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren