In that code, playerRights doesn't play any role. Why do you ask?
|
what role do playerrights play in this code?Code:/** * Private Messaging **/ public void logIntoPM() { setPrivateMessaging(2); for(int i1 = 0; i1 < Config.MAX_PLAYERS; i1++) { Player p = Server.playerHandler.players[i1]; if(p != null && p.isActive) { Client o = (Client)p; if(o != null) { o.getPA().updatePM(c.playerId, 1); } } } boolean pmLoaded = false; for(int i = 0; i < c.friends.length; i++) { if(c.friends[i] != 0) { for(int i2 = 1; i2 < Config.MAX_PLAYERS; i2++) { Player p = Server.playerHandler.players[i2]; if (p != null && p.isActive && Misc.playerNameToInt64(p.playerName) == c.friends[i]) { Client o = (Client)p; if(o != null) { if (c.playerRights >= 2 || p.privateChat == 0 || (p.privateChat == 1 && o.getPA().isInPM(Misc.playerNameToInt64(c.playerName)))) { loadPM(c.friends[i], 1); pmLoaded = true; } break; } } } if(!pmLoaded) { loadPM(c.friends[i], 0); } pmLoaded = false; } for(int i1 = 1; i1 < Config.MAX_PLAYERS; i1++) { Player p = Server.playerHandler.players[i1]; if(p != null && p.isActive) { Client o = (Client)p; if(o != null) { o.getPA().updatePM(c.playerId, 1); } } } } }
In that code, playerRights doesn't play any role. Why do you ask?
you mean to show the crowns?its in playerassistant, think its the updatePM, but not sure, so look around in pa
Oh displaying crowns via PM is client sided.
well it mentioned so it should play a role
im about to create more player rights specifically for donor icons
however.
the problem is that some playerrights stuff uses greater then or less then to determine your power so i dont want donors to be able to do staff things
and wait..
if admin crown, in cache is #2
then why do u still get the crown if u have owner status?
yeah.. but the server is supposed 2 tell the client what crown and what not..
jesus sorry, everyone posted so fast i lost track lol
Yeah but that isn't done through this method. Trust me, all your problems that you are having are client sided. What source and client are you running?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |