Add aliases to PlayerShopCommand.java

This commit is contained in:
Len 2023-08-12 17:47:24 +02:00
parent 0019f27636
commit 2b07c9807b

View File

@ -54,6 +54,7 @@ public class PlayerShopCommand extends Command {
super("playershop");
this.description = "PlayerShop related commands";
this.usageMessage = "/playershop [" + String.join(" | ", SUBCOMMANDS.keySet()) + "]";
this.setAliases(List.of("shop", "shops"));
final List<String> permissions = new ArrayList<>();
permissions.add(BASE_PERM);
permissions.addAll(SUBCOMMANDS.keySet().stream().map(s -> BASE_PERM + "." + s).toList());