Don't send no permission message on tab completion.
Instead returns the empty completions.
This commit is contained in:
parent
532a94382b
commit
c21275b877
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user