@@ -0,0 +1,1330 @@
+package info.tregmine.commands;%0A%0Aimport org.bukkit.ChatColor;%0A%0Aimport info.tregmine.Tregmine;%0Aimport info.tregmine.api.TregminePlayer;%0Aimport info.tregmine.database.DAOException;%0Aimport info.tregmine.database.IContext;%0Aimport info.tregmine.database.IPlayerDAO;%0A%0Apublic class FlyCommand extends AbstractCommand%0A%7B%0A    public FlyCommand(Tregmine tregmine)%0A    %7B%0A        super(tregmine, %22fly%22);%0A    %7D%0A    %0A    @Override%0A    public boolean handlePlayer(TregminePlayer player, String args%5B%5D)%0A    %7B%0A        if(!player.getRank().canFly()) return false;%0A        %0A        if ( player.hasFlag(TregminePlayer.Flags.FLY_ENABLED) ) %7B%0A            player.sendMessage(ChatColor.YELLOW +%0A                    %22Flying Disabled!%22);%0A            player.removeFlag(TregminePlayer.Flags.FLY_ENABLED);%0A            player.setAllowFlight(false);%0A        %7D else %7B%0A%0A            player.sendMessage(ChatColor.YELLOW + %0A                    %22Flying Enabled!%22);%0A            player.setFlag(TregminePlayer.Flags.FLY_ENABLED);%0A            player.setAllowFlight(true);%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%7D%0A

Create FlyCommand.java