Suggest //schem show all <args> if no schems are found

This commit is contained in:
Jesse Boyd 2018-05-02 10:51:58 +10:00
parent e1df0ac8d1
commit 89bd2c0025
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -516,6 +516,17 @@ public class SchematicCommands extends MethodCommands {
}
}
});
long total = count.longValue();
if (total == 0) {
if (args.getJoinedStrings(0).toLowerCase().startsWith("all")) {
BBC.SCHEMATIC_NONE.send(player);
} else {
String joined = args.getJoinedStrings(0);
String cmd = "/" + Commands.getAlias(SchematicCommands.class, "schematic") + " " + getCommand().aliases()[0] + " all " + joined;
BBC.HELP_SUGGEST.send(player, joined, cmd);
}
return;
}
visExtent.bind();
visExtent.update();