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