@@ -0,0 +1,2036 @@
+package info.tregmine.commands;%0A%0Aimport static org.bukkit.ChatColor.AQUA;%0Aimport static org.bukkit.ChatColor.RED;%0Aimport info.tregmine.Tregmine;%0Aimport info.tregmine.api.TregminePlayer;%0Aimport info.tregmine.commands.AbstractCommand;%0Aimport info.tregmine.database.DAOException;%0Aimport info.tregmine.database.IContext;%0Aimport info.tregmine.database.IPlayerDAO;%0A%0Apublic class HideCommand extends AbstractCommand%0A%7B%0A    public HideCommand(Tregmine tregmine)%0A    %7B%0A        super(tregmine, %22hide%22);%0A    %7D%0A%0A    @Override%0A    public boolean handlePlayer(TregminePlayer player, String%5B%5D args)%0A    %7B%0A        if (!player.getRank().canSeeHiddenInfo()) return true;%0A        %0A        if (args.length %3C 1) %7B%0A            player.sendMessage(%22Your Announcement prevention is set to %22 +%0A                (player.hasFlag(TregminePlayer.Flags.HIDDEN_ANNOUNCEMENT) ? %22on%22 : %22off%22) + %22.%22);%0A            return true;%0A        %7D%0A%0A        String state = args%5B0%5D;%0A%0A        if (%22on%22.equalsIgnoreCase(state)) %7B%0A            player.setFlag(TregminePlayer.Flags.HIDDEN_ANNOUNCEMENT);%0A            player.sendMessage(AQUA + %22Announcement prevention is now turned on for you.%22);%0A        %7D%0A        else if (%22off%22.equalsIgnoreCase(state)) %7B%0A            player.removeFlag(TregminePlayer.Flags.HIDDEN_ANNOUNCEMENT);%0A            player.sendMessage(AQUA + %22Announcement prevention is now turned off for you.%22);%0A        %7D%0A        else if (%22status%22.equalsIgnoreCase(state)) %7B%0A            player.sendMessage(%22Your Announcement prevention display is set to %22 +%0A                (player.hasFlag(TregminePlayer.Flags.HIDDEN_ANNOUNCEMENT) ? %22on%22 : %22off%22) + %22.%22);%0A        %7D%0A        else %7B%0A            player.sendMessage(RED%0A                    + %22The commands are /hide on, /hide off and /hide status.%22);%0A        %7D%0A%0A        try (IContext ctx = tregmine.createContext()) %7B%0A            IPlayerDAO playerDAO = ctx.getPlayerDAO();%0A            playerDAO.updatePlayer(player);%0A        %7D catch (DAOException e) %7B%0A            throw new RuntimeException(e);%0A        %7D%0A%0A        return true;%0A    %7D%0A%0A%7D%0A

Create HideCommand.java