player.setPvpFlag(pvpflagval);
player.setPvpKills(pvpkillsval);
player.setPkKills(pkkillsval);
// Save the changed parameters to the database.
player.store();
StatusUpdate su = new StatusUpdate(player.getObjectId());
su.addAttribute(StatusUpdate.CUR_HP, hpval);
su.addAttribute(StatusUpdate.MAX_HP, player.getMaxHp());
su.addAttribute(StatusUpdate.CUR_MP, mpval);