public void addAP(MapleClient c, byte stat, short amount) {
        MapleCharacter player = c.getPlayer();
        switch (stat) {
            case 1: // STR
                player.getStat().setStr(player.getStat().getStr() + amount);
                player.updateSingleStat(MapleStat.STR, player.getStat().getStr());
                break;
            case 2: // DEX
                player.getStat().setDex(player.getStat().getDex() + amount);
                player.updateSingleStat(MapleStat.DEX, player.getStat().getDex());
                break;
            case 3: // INT
                player.getStat().setInt(player.getStat().getInt() + amount);
                player.updateSingleStat(MapleStat.INT, player.getStat().getInt());
                break;
            case 4: // LUK
                player.getStat().setLuk(player.getStat().getLuk() + amount);
                player.updateSingleStat(MapleStat.LUK, player.getStat().getLuk());
                break;
            case 5:
                player.setStorageAp(player.getStorageAp() + amount);
                break;
        }
        if (!player.isAdmin()) {
            player.setRemainingAp(player.getRemainingAp() - amount);
        }
        player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
    }