permission check in tabComplete
This commit is contained in:
@ -103,9 +103,9 @@ public class Borders extends Feature {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException {
|
||||
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];
|
||||
|
Reference in New Issue
Block a user