geforkt von Mirrors/FastAsyncWorldEdit
Update SchematicCommands.java
Dieser Commit ist enthalten in:
Ursprung
1a48546f0c
Commit
09bb9c18ca
@ -585,12 +585,13 @@ public class SchematicCommands {
|
|||||||
boolean oldFirst,
|
boolean oldFirst,
|
||||||
@Switch(name = 'n', desc = "Sort by date, newest first")
|
@Switch(name = 'n', desc = "Sort by date, newest first")
|
||||||
boolean newFirst,
|
boolean newFirst,
|
||||||
@ArgFlag(name = 'f', desc = "Restricts by format.")
|
@ArgFlag(name = 'f', desc = "Restricts by format.", def = "")
|
||||||
String formatName,
|
String formatName,
|
||||||
@Arg(name = "filter", desc = "Filter for schematics", def = "all")
|
@Arg(name = "filter", desc = "Filter for schematics", def = "all")
|
||||||
String filter,
|
String filter,
|
||||||
Arguments arguments
|
Arguments arguments
|
||||||
) throws WorldEditException {
|
) throws WorldEditException {
|
||||||
|
if (formatName.isEmpty()) formatName = null;
|
||||||
if (oldFirst && newFirst) {
|
if (oldFirst && newFirst) {
|
||||||
throw new StopExecutionException(TextComponent.of("Cannot sort by oldest and newest."));
|
throw new StopExecutionException(TextComponent.of("Cannot sort by oldest and newest."));
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren