Check permissions in command suggestions and Dispatcher.

This commit is contained in:
sk89q
2014-06-28 16:57:11 -07:00
parent 205fee3c36
commit 10c45fcb22
6 changed files with 42 additions and 33 deletions

View File

@ -126,6 +126,7 @@ public class BukkitServerInterface extends ServerInterface {
public void registerCommands(Dispatcher dispatcher) {
List<CommandInfo> toRegister = new ArrayList<CommandInfo>();
BukkitCommandInspector inspector = new BukkitCommandInspector(plugin, dispatcher);
for (CommandMapping command : dispatcher.getCommands()) {
Description description = command.getDescription();
List<String> permissions = description.getPermissions();