Better command
This commit is contained in:
parent
45843478df
commit
48d2349768
@ -34,10 +34,7 @@ public class Commands implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
if (args.length < 1) {
|
if (args.length < 1 || args[0].toLowerCase().equals("list")) {
|
||||||
// display help
|
|
||||||
return false;
|
|
||||||
} else if (args[0].toLowerCase().equals("list")) {
|
|
||||||
List<String> ritualNames = new ArrayList<String>(recipes.keySet());
|
List<String> ritualNames = new ArrayList<String>(recipes.keySet());
|
||||||
Collections.sort(ritualNames);
|
Collections.sort(ritualNames);
|
||||||
int max = ritualNames.size() - 1;
|
int max = ritualNames.size() - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user