I have a class Client, which has a variable privilege which I cannot edit. I can however edit a class Launcher which extends Client. A method in Client checks the privilege, and I would like to overwrite the privilege variable before that method.
public class Client { // I can't edit this class at all
    private int privilege = 0;
    public void chat(String msg) {
        if (privilege == 3) {
            // send chat packet with privileges to server
        }
    }
}
Then in a seperate file:
public class Launcher extends Client { // I can edit this class
    // This is what I tried... it didn't work
    @Override
    public void chat(String msg) {
        int privilege = 3;
        super.chat(msg);
    }
}
This is part of a game I've decompiled, and I'd like to overwrite the privilege variable (cheat), how can I accomplish this?
 
    