Search in sources :

Example 1 with Arena

use of com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena in project buildinggame by stefvanschie.

the class ArenaSelection method show.

/**
 * {@inheritDoc}
 *
 * @since 5.6.0
 */
@Override
public void show(@NotNull HumanEntity humanEntity) {
    var outlinePane = new OutlinePane(0, 0, 9, 6);
    for (Arena arena : ArenaManager.getInstance().getArenas()) {
        if (arena.canJoin()) {
            continue;
        }
        var item = new ItemStack(Material.LIME_WOOL);
        ItemMeta itemMeta = item.getItemMeta();
        itemMeta.setDisplayName(ChatColor.GREEN + arena.getName());
        item.setItemMeta(itemMeta);
        outlinePane.addItem(new GuiItem(item, event -> {
            arena.join((Player) humanEntity);
            event.setCancelled(true);
        }));
    }
    addPane(outlinePane);
    super.show(humanEntity);
}
Also used : HumanEntity(org.bukkit.entity.HumanEntity) OutlinePane(com.github.stefvanschie.inventoryframework.pane.OutlinePane) GuiItem(com.github.stefvanschie.inventoryframework.gui.GuiItem) ChestGui(com.github.stefvanschie.inventoryframework.gui.type.ChestGui) ItemMeta(org.bukkit.inventory.meta.ItemMeta) Player(org.bukkit.entity.Player) ItemStack(org.bukkit.inventory.ItemStack) Main(com.gmail.stefvanschiedev.buildinggame.Main) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) ChatColor(org.bukkit.ChatColor) NotNull(org.jetbrains.annotations.NotNull) ArenaManager(com.gmail.stefvanschiedev.buildinggame.managers.arenas.ArenaManager) Material(org.bukkit.Material) GuiItem(com.github.stefvanschie.inventoryframework.gui.GuiItem) Player(org.bukkit.entity.Player) OutlinePane(com.github.stefvanschie.inventoryframework.pane.OutlinePane) ItemStack(org.bukkit.inventory.ItemStack) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) ItemMeta(org.bukkit.inventory.meta.ItemMeta)

Example 2 with Arena

use of com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena in project buildinggame by stefvanschie.

the class BuildTimer method run.

/**
 * Called when a second has passed
 *
 * @since 2.1.0
 */
@Override
public void run() {
    YamlConfiguration config = SettingsManager.getInstance().getConfig();
    YamlConfiguration messages = SettingsManager.getInstance().getMessages();
    running = true;
    var bossBar = arena.getBossBar();
    if (seconds <= 0) {
        // vote
        arena.getUsedPlots().stream().flatMap(plot -> plot.getAllGamePlayers().stream()).forEach(gamePlayer -> {
            var player = gamePlayer.getPlayer();
            player.setGameMode(GameMode.CREATIVE);
            player.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard());
            // messages
            MessageManager.getInstance().send(player, messages.getStringList("buildingCountdown.time-up.message"));
            gamePlayer.addTitleAndSubtitle(messages.getString("buildingCountdown.time-up.title"), messages.getString("buildingCountdown.time-up.subtitle"));
            gamePlayer.sendActionbar(messages.getString("buildingCountdown.time-up.actionbar"));
            if (bossBar.getPlayers().contains(player))
                bossBar.removePlayer(player);
        });
        arena.setState(GameState.VOTING);
        arena.getVoteTimer().runTaskTimer(Main.getInstance(), 20L, 20L);
        running = false;
        this.cancel();
        return;
    } else if (seconds % 60 == 0 || seconds == 30 || seconds == 15 || (seconds <= 10 && seconds >= 1))
        arena.getUsedPlots().stream().flatMap(plot -> plot.getGamePlayers().stream()).forEach(gamePlayer -> {
            Player player = gamePlayer.getPlayer();
            messages.getStringList("buildingCountdown.message").forEach(message -> MessageManager.getInstance().send(player, message.replace("%seconds%", getSeconds() + "").replace("%minutes%", getMinutes() + "").replace("%time%", getMinutes() + ":" + getSecondsFromMinute()).replace("%seconds_from_minute%", getSecondsFromMinute() + "")));
            gamePlayer.addTitleAndSubtitle(messages.getString("buildingCountdown.title").replace("%seconds%", getSeconds() + "").replace("%minutes%", getMinutes() + "").replace("%time%", getMinutes() + ":" + getSecondsFromMinute()).replace("%seconds_from_minute%", getSecondsFromMinute() + ""), messages.getString("buildingCountdown.subtitle").replace("%seconds%", getSeconds() + "").replace("%minutes%", getMinutes() + "").replace("%time%", getMinutes() + ":" + getSecondsFromMinute()).replace("%seconds_from_minute%", getSecondsFromMinute() + ""));
            gamePlayer.sendActionbar(messages.getString("buildingCountdown.actionbar").replace("%seconds%", String.valueOf(seconds)).replace("%minutes%", String.valueOf(getMinutes())).replace("%time%", getMinutes() + ":" + getSecondsFromMinute()).replace("%seconds_from_minutes%", String.valueOf(getSecondsFromMinute())));
        });
    arena.getUsedPlots().forEach(plot -> plot.getGamePlayers().forEach(gamePlayer -> gamePlayer.getPlayer().setLevel(getSeconds())));
    // bossbar
    bossBar.setTitle(MessageManager.translate(messages.getString("global.bossbar-header")).replace("%seconds%", getSeconds() + "").replace("%seconds_from_minutes%", getSecondsFromMinute() + "").replace("%minutes%", getMinutes() + "").replace("%subject%", arena.getSubject()));
    bossBar.setProgress((double) getSeconds() / (double) getOriginalSeconds());
    // timings
    try {
        config.getConfigurationSection("timings.build-timer.at").getKeys(false).forEach(key -> {
            if (seconds == Integer.parseInt(key)) {
                config.getStringList("timings.build-timer.at." + Integer.parseInt(key)).forEach(command -> CommandUtil.dispatch(command.replace("%arena%", arena.getName())));
            }
        });
        config.getConfigurationSection("timings.build-timer.every").getKeys(false).forEach(key -> {
            if (seconds % Integer.parseInt(key) == 0) {
                config.getStringList("timings.build-timer.every." + Integer.parseInt(key)).forEach(command -> CommandUtil.dispatch(command.replace("%arena%", arena.getName())));
            }
        });
    } catch (NullPointerException | NumberFormatException ignore) {
    }
    seconds--;
}
Also used : GameMode(org.bukkit.GameMode) Contract(org.jetbrains.annotations.Contract) GameState(com.gmail.stefvanschiedev.buildinggame.utils.GameState) YamlConfiguration(org.bukkit.configuration.file.YamlConfiguration) Main(com.gmail.stefvanschiedev.buildinggame.Main) Timer(com.gmail.stefvanschiedev.buildinggame.timers.utils.Timer) MessageManager(com.gmail.stefvanschiedev.buildinggame.managers.messages.MessageManager) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) SettingsManager(com.gmail.stefvanschiedev.buildinggame.managers.files.SettingsManager) Player(org.bukkit.entity.Player) CommandUtil(com.gmail.stefvanschiedev.buildinggame.utils.CommandUtil) Bukkit(org.bukkit.Bukkit) Player(org.bukkit.entity.Player) YamlConfiguration(org.bukkit.configuration.file.YamlConfiguration)

Example 3 with Arena

use of com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena in project buildinggame by stefvanschie.

the class ClickLeaveSign method onPlayerInteract.

/**
 * Handles players clicking on a leave sign
 *
 * @param e an event representing a player interacting
 * @see PlayerInteractEvent
 * @since 2.1.0
 */
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {
    if (e.getHand() != EquipmentSlot.HAND) {
        return;
    }
    var player = e.getPlayer();
    var clickedBlock = e.getClickedBlock();
    if (clickedBlock == null)
        return;
    BlockState state = clickedBlock.getState();
    if (e.getAction() != Action.RIGHT_CLICK_BLOCK || !(state instanceof Sign))
        return;
    for (PotentialBlockPosition blockPos : SignManager.getInstance().getLeaveSigns()) {
        Block block = blockPos.getBlock();
        if (block == null || !block.equals(clickedBlock)) {
            continue;
        }
        Arena arena = ArenaManager.getInstance().getArena(player);
        if (arena == null) {
            MessageManager.getInstance().send(player, ChatColor.RED + "You're not in an arena");
            return;
        }
        arena.leave(player);
        break;
    }
}
Also used : BlockState(org.bukkit.block.BlockState) PotentialBlockPosition(com.gmail.stefvanschiedev.buildinggame.utils.potential.PotentialBlockPosition) Block(org.bukkit.block.Block) Sign(org.bukkit.block.Sign) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) EventHandler(org.bukkit.event.EventHandler)

Example 4 with Arena

use of com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena in project buildinggame by stefvanschie.

the class ClickSpectateSign method onPlayerInteract.

/**
 * Handles players clicking on a leave sign
 *
 * @param e an event representing a player interacting
 * @see PlayerInteractEvent
 * @since 2.1.0
 */
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {
    var player = e.getPlayer();
    var clickedBlock = e.getClickedBlock();
    if (clickedBlock == null)
        return;
    BlockState state = clickedBlock.getState();
    if (e.getAction() != Action.RIGHT_CLICK_BLOCK || !(state instanceof Sign))
        return;
    for (SpectateSign spectateSign : SignManager.getInstance().getSpectateSigns()) {
        Block block = spectateSign.getPotentialBlockPosition().getBlock();
        if (!clickedBlock.equals(block)) {
            continue;
        }
        OfflinePlayer offlinePlayer = spectateSign.getOfflinePlayer();
        if (!offlinePlayer.isOnline()) {
            MessageManager.getInstance().send(player, ChatColor.RED + offlinePlayer.getName() + " is offline");
            return;
        }
        Arena arena = ArenaManager.getInstance().getArena(offlinePlayer.getPlayer());
        if (arena == null) {
            MessageManager.getInstance().send(player, ChatColor.RED + "This player is not in an arena");
            return;
        }
        arena.getPlot(offlinePlayer.getPlayer()).addSpectator(player, getPlayer(arena, offlinePlayer.getPlayer()));
        break;
    }
}
Also used : SpectateSign(com.gmail.stefvanschiedev.buildinggame.utils.SpectateSign) BlockState(org.bukkit.block.BlockState) Block(org.bukkit.block.Block) OfflinePlayer(org.bukkit.OfflinePlayer) Sign(org.bukkit.block.Sign) SpectateSign(com.gmail.stefvanschiedev.buildinggame.utils.SpectateSign) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) EventHandler(org.bukkit.event.EventHandler)

Example 5 with Arena

use of com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena in project buildinggame by stefvanschie.

the class VoteTimer method run.

/**
 * Called whenever a second has passed. This will generate a new plot if needed or end the game if all plots have
 * been voted on.
 *
 * @since 2.1.0
 */
@Override
public void run() {
    running = true;
    if (seconds == originalSeconds) {
        plot = getNextPlot();
        if (plot == null) {
            arena.setState(GameState.RESETING);
            Plot first = null;
            Plot second = null;
            Plot third = null;
            for (var plot : arena.getPlots()) {
                if (first == null || first.getPoints() < plot.getPoints()) {
                    third = second;
                    second = first;
                    first = plot;
                    continue;
                }
                if (second == null || second.getPoints() < plot.getPoints()) {
                    third = second;
                    second = plot;
                    continue;
                }
                if (third == null || third.getPoints() < plot.getPoints())
                    third = plot;
            }
            // call events
            if (first != null)
                Bukkit.getPluginManager().callEvent(new PlayerWinEvent(arena, first.getGamePlayers(), Win.FIRST));
            if (second != null)
                Bukkit.getPluginManager().callEvent(new PlayerWinEvent(arena, second.getGamePlayers(), Win.SECOND));
            if (third != null)
                Bukkit.getPluginManager().callEvent(new PlayerWinEvent(arena, third.getGamePlayers(), Win.THIRD));
            arena.setFirstPlot(first);
            arena.setSecondPlot(second);
            arena.setThirdPlot(third);
            // create a schematic of the first plot
            if (config.getBoolean("schematics.enable") && Bukkit.getPluginManager().isPluginEnabled("WorldEdit")) {
                Region region = arena.getFirstPlot().getBoundary();
                var dateTimeFormatter = DateTimeFormatter.ofPattern("yyy-MM-dd_HH-mm-ss");
                String players = arena.getFirstPlot().getGamePlayers().stream().map(gp -> '-' + gp.getPlayer().getName()).reduce("", String::concat);
                var fileName = LocalDateTime.now().format(dateTimeFormatter) + players + ".schem";
                var file = new File(SettingsManager.getInstance().getWinnerSchematicsFolder(), fileName);
                region.saveSchematic(file);
            }
            for (var plot : arena.getUsedPlots()) {
                for (var gamePlayer : plot.getAllGamePlayers()) {
                    var player = gamePlayer.getPlayer();
                    player.getInventory().clear();
                    if (first != null)
                        first.getLocation().teleport(player);
                    MessageManager.getInstance().send(player, messages.getStringList("game-ends.message"));
                    if (second != null && third != null) {
                        for (String message : messages.getStringList("game-ends.winners")) MessageManager.getInstance().send(player, message.replace("%first_players%", first.getPlayerFormat()).replace("%second_players%", second.getPlayerFormat()).replace("%third_players%", third.getPlayerFormat()));
                    }
                    // noinspection ConstantConditions
                    gamePlayer.addTitleAndSubtitle(messages.getString("winner.title").replace("%first%", first.getPlayerFormat()).replace("%second%", second == null ? "" : second.getPlayerFormat()).replace("%third%", third == null ? "" : third.getPlayerFormat()).replace("%first_points%", first.getPoints() + "").replace("%second_points%", second == null ? "0" : second.getPoints() + "").replace("%third_points%", third == null ? "0" : third.getPoints() + ""), messages.getString("winner.subtitle").replace("%first%", first.getPlayerFormat()).replace("%second%", second == null ? "" : second.getPlayerFormat()).replace("%third%", third == null ? "" : third.getPlayerFormat()).replace("%first_points%", first.getPoints() + "").replace("%second_points%", second == null ? "0" : second.getPoints() + "").replace("%third_points%", third == null ? "0" : second.getPoints() + ""));
                    gamePlayer.sendActionbar(messages.getString("winner.actionbar").replace("%first%", first.getPlayerFormat()).replace("%second%", second == null ? "" : second.getPlayerFormat()).replace("%third%", third == null ? "" : third.getPlayerFormat()).replace("%first_points%", String.valueOf(first.getPoints())).replace("%second_points%", second == null ? "0" : String.valueOf(second.getPoints())).replace("third_points", third == null ? "0" : String.valueOf(third.getPoints())));
                    if (SDVault.getInstance().isEnabled() && gamePlayer.getGamePlayerType() == GamePlayerType.PLAYER) {
                        String moneyString;
                        if (first.equals(plot)) {
                            moneyString = config.getString("money.first");
                            messages.getStringList("winner.first").forEach(message -> MessageManager.getInstance().send(player, message.replace("%points%", plot.getPoints() + "")));
                            config.getStringList("commands.first").forEach(command -> CommandUtil.dispatch(command.replace("%player%", player.getName())));
                        } else if (second.equals(plot)) {
                            moneyString = config.getString("money.second");
                            messages.getStringList("winner.second").forEach(message -> MessageManager.getInstance().send(player, message.replace("%points%", plot.getPoints() + "")));
                            config.getStringList("commands.second").forEach(command -> CommandUtil.dispatch(command.replace("%player%", player.getName())));
                        } else if (third.equals(plot)) {
                            moneyString = config.getString("money.third");
                            messages.getStringList("winner.third").forEach(message -> MessageManager.getInstance().send(player, message.replace("%points%", plot.getPoints() + "")));
                            config.getStringList("commands.third").forEach(command -> CommandUtil.dispatch(command.replace("%player%", player.getName())));
                        } else {
                            moneyString = config.getString("money.others");
                            config.getStringList("commands.others").forEach(command -> CommandUtil.dispatch(command.replace("%player%", player.getName())));
                        }
                        // compute money
                        MathElement element = MathElementFactory.parseText(moneyString.replace("%points%", String.valueOf(arena.getPlot(player).getVotes().stream().mapToInt(Vote::getPoints).sum())));
                        double money = element == null ? Double.NaN : element.compute();
                        if (Double.isNaN(money))
                            Main.getInstance().getLogger().warning("Unable to parse mathematical equation");
                        if (Double.isFinite(money) && arena.hasMoneyEnabled()) {
                            if (player.hasPermission("bg.rewards.money.double"))
                                money *= 2;
                            // booster multiplier
                            money *= Booster.getMultiplier(player);
                            if (SDVault.getEconomy().depositPlayer(player, money).transactionSuccess()) {
                                if (Booster.hasBooster(player)) {
                                    for (String message : messages.getStringList("vault.message.booster")) MessageManager.getInstance().send(player, message.replace("%money%", money + ""));
                                } else {
                                    for (String message : messages.getStringList("vault.message.no-booster")) MessageManager.getInstance().send(player, message.replace("%money%", money + ""));
                                }
                            }
                        }
                    }
                }
            }
            if (first != null) {
                first.getGamePlayers().forEach(gamePlayer -> config.getStringList("win-commands").forEach(command -> {
                    command = command.replace("%winner%", gamePlayer.getPlayer().getName());
                    if (!command.isEmpty() && command.charAt(0) == '@') {
                        String targetText = command.split(" ")[0];
                        Target.parse(targetText).execute(command.substring(targetText.length() + 1));
                    } else {
                        Bukkit.dispatchCommand(gamePlayer.getPlayer(), command);
                    }
                }));
            }
            arena.getWinTimer().runTaskTimer(Main.getInstance(), 20L, 20L);
            running = false;
            this.cancel();
            return;
        }
        arena.setVotingPlot(plot);
        arena.getUsedPlots().forEach(plot -> plot.getAllGamePlayers().forEach(gamePlayer -> {
            var player = gamePlayer.getPlayer();
            if (!config.getBoolean("names-after-voting") && config.getBoolean("scoreboards.vote.enable")) {
                arena.getVoteScoreboard(plot).show(player);
            }
            player.setPlayerTime(this.plot.getTime(), false);
            player.setPlayerWeather(this.plot.isRaining() ? WeatherType.DOWNFALL : WeatherType.CLEAR);
        }));
    }
    // timings
    try {
        config.getConfigurationSection("timings.vote-timer.at").getKeys(false).forEach(key -> {
            if (seconds == Integer.parseInt(key)) {
                config.getStringList("timings.vote-timer.at." + Integer.parseInt(key)).forEach(command -> CommandUtil.dispatch(command.replace("%arena%", arena.getName())));
            }
        });
        config.getConfigurationSection("timings.vote-timer.every").getKeys(false).forEach(key -> {
            if (seconds % Integer.parseInt(key) == 0) {
                config.getStringList("timings.vote-timer.every." + Integer.parseInt(key)).forEach(command -> CommandUtil.dispatch(command.replace("%arena%", arena.getName())));
            }
        });
    } catch (NullPointerException | NumberFormatException ignore) {
    }
    seconds--;
    if (seconds <= 0) {
        arena.getUsedPlots().stream().flatMap(plot -> plot.getGamePlayers().stream()).forEach(player -> {
            Player pl = player.getPlayer();
            if (config.getBoolean("names-after-voting")) {
                messages.getStringList("voting.message").forEach(message -> MessageManager.getInstance().send(pl, message.replace("%playerplot%", this.plot.getPlayerFormat())));
                player.addTitleAndSubtitle(messages.getString("voting.title").replace("%playerplot%", this.plot.getPlayerFormat()), messages.getString("voting.subtitle").replace("%playerplot%", this.plot.getPlayerFormat()));
                player.sendActionbar(messages.getString("voting.actionbar").replace("%playerplot%", this.plot.getPlayerFormat()));
            }
            if (!this.plot.hasVoted(pl) && !this.plot.getGamePlayers().contains(player))
                this.plot.addVote(new Vote(config.getInt("voting.default-vote-points"), pl));
        });
        seconds = originalSeconds;
    }
}
Also used : GamePlayerType(com.gmail.stefvanschiedev.buildinggame.utils.gameplayer.GamePlayerType) MathElement(com.gmail.stefvanschiedev.buildinggame.utils.math.MathElement) MathElementFactory(com.gmail.stefvanschiedev.buildinggame.utils.math.util.MathElementFactory) Win(com.gmail.stefvanschiedev.buildinggame.api.Win) PlayerWinEvent(com.gmail.stefvanschiedev.buildinggame.api.events.PlayerWinEvent) MessageManager(com.gmail.stefvanschiedev.buildinggame.managers.messages.MessageManager) LocalDateTime(java.time.LocalDateTime) SettingsManager(com.gmail.stefvanschiedev.buildinggame.managers.files.SettingsManager) Player(org.bukkit.entity.Player) Plot(com.gmail.stefvanschiedev.buildinggame.utils.plot.Plot) File(java.io.File) Nullable(org.jetbrains.annotations.Nullable) Contract(org.jetbrains.annotations.Contract) Region(com.gmail.stefvanschiedev.buildinggame.utils.region.Region) com.gmail.stefvanschiedev.buildinggame.utils(com.gmail.stefvanschiedev.buildinggame.utils) YamlConfiguration(org.bukkit.configuration.file.YamlConfiguration) Main(com.gmail.stefvanschiedev.buildinggame.Main) Timer(com.gmail.stefvanschiedev.buildinggame.timers.utils.Timer) DateTimeFormatter(java.time.format.DateTimeFormatter) Arena(com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena) SDVault(com.gmail.stefvanschiedev.buildinggame.managers.softdependencies.SDVault) Bukkit(org.bukkit.Bukkit) WeatherType(org.bukkit.WeatherType) PlayerWinEvent(com.gmail.stefvanschiedev.buildinggame.api.events.PlayerWinEvent) MathElement(com.gmail.stefvanschiedev.buildinggame.utils.math.MathElement) Player(org.bukkit.entity.Player) Plot(com.gmail.stefvanschiedev.buildinggame.utils.plot.Plot) Region(com.gmail.stefvanschiedev.buildinggame.utils.region.Region) File(java.io.File)

Aggregations

Arena (com.gmail.stefvanschiedev.buildinggame.utils.arena.Arena)15 YamlConfiguration (org.bukkit.configuration.file.YamlConfiguration)10 SettingsManager (com.gmail.stefvanschiedev.buildinggame.managers.files.SettingsManager)7 Main (com.gmail.stefvanschiedev.buildinggame.Main)6 MessageManager (com.gmail.stefvanschiedev.buildinggame.managers.messages.MessageManager)6 Player (org.bukkit.entity.Player)6 ArenaManager (com.gmail.stefvanschiedev.buildinggame.managers.arenas.ArenaManager)4 MainSpawnManager (com.gmail.stefvanschiedev.buildinggame.managers.mainspawn.MainSpawnManager)4 StatManager (com.gmail.stefvanschiedev.buildinggame.managers.stats.StatManager)4 com.gmail.stefvanschiedev.buildinggame.timers (com.gmail.stefvanschiedev.buildinggame.timers)4 com.gmail.stefvanschiedev.buildinggame.utils (com.gmail.stefvanschiedev.buildinggame.utils)4 ArenaMode (com.gmail.stefvanschiedev.buildinggame.utils.arena.ArenaMode)4 GamePlayerType (com.gmail.stefvanschiedev.buildinggame.utils.gameplayer.GamePlayerType)4 ArenaSelection (com.gmail.stefvanschiedev.buildinggame.utils.guis.ArenaSelection)4 Plot (com.gmail.stefvanschiedev.buildinggame.utils.plot.Plot)4 Region (com.gmail.stefvanschiedev.buildinggame.utils.region.Region)4 StatType (com.gmail.stefvanschiedev.buildinggame.utils.stats.StatType)4 BaseCommand (co.aikar.commands.BaseCommand)3 CommandHelp (co.aikar.commands.CommandHelp)3 co.aikar.commands.annotation (co.aikar.commands.annotation)3