add aquacore support (but it doesnt work because it turns out aquacore api is only on spigot)
This commit is contained in:
@@ -83,6 +83,7 @@ public class ManageCommand extends BaseCommand {
|
||||
if(args.length > 1) {
|
||||
for(ISubCommand subCommand : subCommands) {
|
||||
if(args[0].equalsIgnoreCase(subCommand.getName()) || subCommand.getAliases().contains(args[0].toLowerCase(Locale.ROOT))) {
|
||||
if(!sender.hasPermission(subCommand.getPermission())) continue;
|
||||
return subCommand.autoComplete(sender, Arrays.copyOfRange(args, 1, args.length));
|
||||
}
|
||||
}
|
||||
@@ -91,6 +92,7 @@ public class ManageCommand extends BaseCommand {
|
||||
List<String> commands = new ArrayList<>();
|
||||
for(ISubCommand subCommand : subCommands) {
|
||||
if(!subCommand.showInTabComplete()) continue;
|
||||
if(!sender.hasPermission(subCommand.getPermission())) continue;
|
||||
commands.add(subCommand.getName());
|
||||
commands.addAll(subCommand.getAliases());
|
||||
}
|
||||
|
||||
+5
@@ -65,6 +65,11 @@ public class PermissionList extends SubCommand {
|
||||
if(!s.toLowerCase(Locale.ROOT).contains("ajqueue")) return;
|
||||
sender.sendMessage(Component.text(s));
|
||||
});
|
||||
sender.sendMessage(
|
||||
Component.text(
|
||||
"Using: "+main.getLogicGetter().getPermissionGetter().getSelected().getName())
|
||||
.color(NamedTextColor.GOLD)
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user