Commits

Travis Watkins authored 45d2e3ff200
Clean up alias handling.

There is no need to print a stacktrace when an alias fails, we do not do this for normal commands. We also now give error messages when attempting to register an alias instead of having them just silently not function.
No tags

src/main/java/org/bukkit/command/FormattedCommandAlias.java

Modified
41 41 formatString = event.getCommand();
42 42 }
43 43
44 44 commands.add(buildCommand(formatString, args));
45 45 } catch (Throwable throwable) {
46 46 if (throwable instanceof IllegalArgumentException) {
47 47 sender.sendMessage(throwable.getMessage());
48 48 } else {
49 49 sender.sendMessage(org.bukkit.ChatColor.RED + "An internal error occurred while attempting to perform this command");
50 50 }
51 - Bukkit.getLogger().log(Level.WARNING, "Failed to parse command alias " + commandLabel + ": " + formatString, throwable);
52 51 return false;
53 52 }
54 53 }
55 54
56 55 for (String command : commands) {
57 56 result |= Bukkit.dispatchCommand(sender, command);
58 57 }
59 58
60 59 return result;
61 60 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut