permission check in tabComplete
This commit is contained in:
parent
91460c8367
commit
7535c6103d
@ -105,7 +105,7 @@ public class Borders extends Feature {
|
||||
@Override
|
||||
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
|
||||
ArrayList<String> hints = new ArrayList<String>();
|
||||
if (args.length < 1)
|
||||
if (!sender.hasPermission(this.getPermission()) || args.length < 1)
|
||||
return hints;
|
||||
|
||||
String lastWord = args[args.length - 1];
|
||||
|
Loading…
Reference in New Issue
Block a user