Update SchematicCommands.java

This commit is contained in:
Jesse Boyd 2019-11-01 23:22:29 +01:00
parent 1a48546f0c
commit 09bb9c18ca
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -585,12 +585,13 @@ public class SchematicCommands {
boolean oldFirst,
@Switch(name = 'n', desc = "Sort by date, newest first")
boolean newFirst,
@ArgFlag(name = 'f', desc = "Restricts by format.")
@ArgFlag(name = 'f', desc = "Restricts by format.", def = "")
String formatName,
@Arg(name = "filter", desc = "Filter for schematics", def = "all")
String filter,
Arguments arguments
) throws WorldEditException {
if (formatName.isEmpty()) formatName = null;
if (oldFirst && newFirst) {
throw new StopExecutionException(TextComponent.of("Cannot sort by oldest and newest."));
}