Don't send no permission message on tab completion.

Instead returns the empty completions.
This commit is contained in:
elmo92 2014-11-04 00:56:03 +00:00 committed by md_5
parent 532a94382b
commit c21275b877

View File

@ -146,8 +146,11 @@ public class PluginManager
String permission = command.getPermission(); String permission = command.getPermission();
if ( permission != null && !permission.isEmpty() && !sender.hasPermission( permission ) ) if ( permission != null && !permission.isEmpty() && !sender.hasPermission( permission ) )
{
if ( !( command instanceof TabExecutor ) )
{ {
sender.sendMessage( proxy.getTranslation( "no_permission" ) ); sender.sendMessage( proxy.getTranslation( "no_permission" ) );
}
return true; return true;
} }