mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 18:55:22 +01:00
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:
parent
78ea41015f
commit
3973c511f5
@ -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" ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user