Quote:
Originally Posted by callimuc
maybe since servers mostly still have the accounts.
PHP Code:
if(player.account in serveroptions.staff.tokenize(",") || player.communityname in serveroptions.staff.tokenize(","))
|
the only time a communityname wouldn't return the proper value (I think this is still the case) is if a new Graal####### account hasn't set a community name.
I guess you could do
if( ((player.communityname.length() > 0) ? player.communityname : player.account) in severoptions.staff.tokenize(","))
to prevent incorrectly formatted staff lists that might have an empty value somewhere from returning true for players that haven't set their community name.