Refactors a lot of code, and extracts permission-related functions to the PermissionHelper class

This commit is contained in:
2021-09-20 13:56:30 +02:00
parent b57f988b62
commit f681db629f
23 changed files with 497 additions and 381 deletions

View File

@ -16,11 +16,16 @@ public class StarGateTabCompleter implements TabCompleter {
@Override
public @Nullable List<String> onTabComplete(@NotNull CommandSender commandSender, @NotNull Command command,
@NotNull String s, @NotNull String[] strings) {
@NotNull String s, @NotNull String[] args) {
List<String> commands = new ArrayList<>();
commands.add("about");
commands.add("reload");
return commands;
if (args.length == 1) {
return commands;
} else {
return new ArrayList<>();
}
}
}