Commits
Travis Watkins authored 45d2e3ff200
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 | } |