Code:
/**
* List all players who will be a hidden admin.
*/
public final String[] HIDDEN_ADMINS = {
"Admin1",
"Admin2"
};
/**
* Returns true/false value whether they're hidden
* or not.
*/
public boolean isHidden() {
for (String s : HIDDEN_ADMINS) {
if (s.equalsIgnoreCase(playerName))
return true;
}
return false;
}
Find where it writes your player rights to the client, and replace with this:
Code:
out.write(isHidden() ? 0 : playerRights);
You might have to do that in your chat update too, I'm not sure. Didn't compile this either, test yourself.
Lul...