Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CommandSpec guildAddCommand = CommandSpec.builder()
- .description(Text.of("Add player to guild."))
- .permission("guildwars.player.add")
- .arguments(
- GenericArguments.firstParsing(GenericArguments.string(Text.of("create")),
- GenericArguments.string(Text.of("invite")),
- GenericArguments.string(Text.of("kick")),
- GenericArguments.string(Text.of("destruct"))),
- GenericArguments.firstParsing(GenericArguments.string(Text.of("name")),
- GenericArguments.string(Text.of("nickname"))))
- .executor(new GuildAddMemberCommand(this.guilds))
- .build();
- Sponge.getCommandManager().register(this, guildAddCommand, "guildwars", "gw");
Advertisement
Add Comment
Please, Sign In to add comment