Were you flagged as a GM? If so, you're not supposed to lose AP.btw I fixed the @dex @luk @str etc command
i did this to the player command:
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 1, x);
} else if (splitted[0].equals("@dex") && x + player.getDex() < max) {
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 2, x);
} else if (splitted[0].equals("@int") && x + player.getInt() < max) {
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 3, x);
} else if (splitted[0].equals("@luk") && x + player.getLuk() < max) {
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 4, x);
} else if (splitted[0].equals("@hp") && x + player.getMaxHp() < max) {
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 5, x);
} else if (splitted[0].equals("@mp") && x + player.getMaxMp() < max) {
player.setRemainingAp(player.getRemainingAp() - x);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - x);
addAP(c, 6, x);





