Skip to content

Commit

Permalink
feat: TabComple
Browse files Browse the repository at this point in the history
  • Loading branch information
aomkoyo committed Mar 28, 2024
1 parent 0a4b59c commit a352edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class TabCompletion implements TabCompleter {
@Override
public List<String> onTabComplete (CommandSender sender, Command cmd, String label, String[] args){
if(args.length == 1){
if(args.length == 1 && sender.hasPermission("townytweaks.admin")) {
return List.of("reload", "version");
}
return null;
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ commands:
permission-message: You do not have permission to use this command.
usage: /townytweaks <reload|version>
description: Main command for TownyTweaks
aliases: [tt]

0 comments on commit a352edb

Please sign in to comment.