Permalink
Browse files

Sanitize Bukkit Command Label Before Passing On (#149)

Fixes #146 

This might not be the 100% perfect method for fixing this, but as it stands, it's the least amount of diff
 needed to fix said issue.
  • Loading branch information...
willies952002 authored and aikar committed Jul 4, 2018
1 parent 422238b commit 786ebe831f1ccbc5df852b28f4189e3a34f816a2
Showing with 2 additions and 0 deletions.
  1. +1 −0 CONTRIBUTORS.md
  2. +1 −0 bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java
@@ -10,3 +10,4 @@ If you open a PR and are not already in this file, please feel free to add yours
* [***kashike***](https://github.com/aikar/commands/commits?author=kashike) - Sponge Support, Random nit picks
* [***Williambraecky***](https://github.com/aikar/commands/commits?author=Williambraecky) - BungeeCord Support
* [***dumptruckman***](https://github.com/aikar/commands/commits?author=dumptruckman) - JDA Support
* [***willies952002***](https://github.com/aikar/commands/commits?author=willies952002)
@@ -60,6 +60,7 @@ public String getCommandName() {
@Override
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
if (commandLabel.contains(":")) commandLabel = ACFPatterns.COLON.split(commandLabel, 2)[1];
execute(manager.getCommandIssuer(sender), commandLabel, args);
return true;
}

0 comments on commit 786ebe8

Please sign in to comment.