Hi I'm wondering how to make the crown update as soon as a player gets a new crown. I know relogging works but I'd prefer that I didn't have to force someone to relog if they dont have to since I know that its possible to update it without needing to relog.
Here is what I DO know, this is where the crown is declared in RS2LoginProtocolDecoder, but I don't know how to make it update this information.
Code:
StaticPacketBuilder bldr = new StaticPacketBuilder();
bldr.setBare(true);
bldr.addByte((byte) returnCode);
if(returnCode == 2) {
cl.saveCharacter = true;
if(cl.playerRights == 3) {
bldr.addByte((byte) 2);
} else {
bldr.addByte((byte) cl.playerRights);
}
}