Show the no permission message even if the command is a TabExecutor but the command was not dispatched by the tab completer.

This commit is contained in:
portalBlock 2015-03-21 13:04:39 -05:00 committed by md_5
parent 78ea41015f
commit 3973c511f5

View File

@ -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" ) );
}