else if (splitted[0].equals("@str")) {
int up;
up = Integer.parseInt(splitted[1]);
if ( player.getRemainingAp() < up || player.getRemainingAp() < 0 || player.getStr() >= 2000 || up < 0) {
mc.dropMessage("Insufficient AP or above the 2000 limit.");
} else if ( player.getRemainingAp() > 0) {
player.setStr(player.getStr() + up);
player.setRemainingAp(player.getRemainingAp() - up);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.updateSingleStat(MapleStat.STR, player.getStr());
}
}else if (splitted[0].equals("@int")) {
int up;
up = Integer.parseInt(splitted[1]);
if ( player.getRemainingAp() < up || player.getRemainingAp() < 0 || player.getInt() >= 2000 || up < 0) {
mc.dropMessage("Insufficient AP or above the 2000 limit");
} else if ( player.getRemainingAp() > 0) {
player.setInt(player.getInt() + up);
player.setRemainingAp(player.getRemainingAp() - up);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.updateSingleStat(MapleStat.INT, player.getInt());
}
//DEX
}else if (splitted[0].equals("@dex")) {
int up;
up = Integer.parseInt(splitted[1]);
if ( player.getRemainingAp() < up || player.getRemainingAp() < 0 || player.getDex() >= 2000 || up < 0) {
mc.dropMessage("Insufficient AP or above the 2000 limit");
} else if ( player.getRemainingAp() > 0) {
player.setDex(player.getDex() + up);
player.setRemainingAp(player.getRemainingAp() - up);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.updateSingleStat(MapleStat.DEX, player.getDex());
}
//LUCK
}else if (splitted[0].equals("@luk")) {
int up;
up = Integer.parseInt(splitted[1]);
if ( player.getRemainingAp() < up || player.getRemainingAp() < 0 || player.getLuk() >= 2000 || up < 0) {
mc.dropMessage("Insufficient AP or above the 2000 limit");
} else if ( player.getRemainingAp() > 0) {
player.setLuk(player.getLuk() + up);
player.setRemainingAp(player.getRemainingAp() - up);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
player.updateSingleStat(MapleStat.LUK, player.getLuk());
}
}