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

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