I don't know what the hell is up but when I do !level 200 it goes to level 201. Why is that?
Can someone please explain. :D.
This is the command btw:
Edit: Fixed it. NVM.
Can someone please explain. :D.
This is the command btw:
PHP Code:
public static class Level extends CommandExecute {
@Override
public int execute(MapleClient c, String[] splitted) {
c.getPlayer().setLevel(Short.parseShort(splitted[1]));
c.getPlayer().levelUp();
if (c.getPlayer().getExp() < 0) {
c.getPlayer().gainExp(-c.getPlayer().getExp(), false, false, true);
}
return 1;
}
}