From 3973c511f569238d2dea430ffb6cff499283338e Mon Sep 17 00:00:00 2001 From: portalBlock Date: Sat, 21 Mar 2015 13:04:39 -0500 Subject: [PATCH] Show the no permission message even if the command is a TabExecutor but the command was not dispatched by the tab completer. --- api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 60e35e1b..91ab95ad 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -147,7 +147,7 @@ public class PluginManager String permission = command.getPermission(); if ( permission != null && !permission.isEmpty() && !sender.hasPermission( permission ) ) { - if ( !( command instanceof TabExecutor ) ) + if ( !( command instanceof TabExecutor ) || tabResults == null ) { sender.sendMessage( proxy.getTranslation( "no_permission" ) ); }