I'm creating a new instance of nPlayer
for each user that connects to my server.
nPlayer nPlayer = new nPlayer(player);
The nPlayer
class contains the following with a bunch of other methods used to grab the private variable details.
private Player player;
private boolean muted;
private boolean admin;
private boolean mod;
private boolean pvp;
public nPlayer(Player player) {
player = player;
muted = false;
admin = false;
}
example of method to grab variable details within the nPlayer
class.
public boolean getAdmin() {
return admin;
}
I was wondering how do I go about grabbing say the admin variable from Nplayer of a specific user from another class?