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();
|
String permission = command.getPermission();
|
||||||
if ( permission != null && !permission.isEmpty() && !sender.hasPermission( permission ) )
|
if ( permission != null && !permission.isEmpty() && !sender.hasPermission( permission ) )
|
||||||
{
|
{
|
||||||
if ( !( command instanceof TabExecutor ) )
|
if ( !( command instanceof TabExecutor ) || tabResults == null )
|
||||||
{
|
{
|
||||||
sender.sendMessage( proxy.getTranslation( "no_permission" ) );
|
sender.sendMessage( proxy.getTranslation( "no_permission" ) );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user