Don't send no permission message on tab completion.
Instead returns the empty completions.
This commit is contained in:
parent
532a94382b
commit
c21275b877
@ -147,7 +147,10 @@ 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 ) )
|
||||||
{
|
{
|
||||||
sender.sendMessage( proxy.getTranslation( "no_permission" ) );
|
if ( !( command instanceof TabExecutor ) )
|
||||||
|
{
|
||||||
|
sender.sendMessage( proxy.getTranslation( "no_permission" ) );
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user