Don't allow normal users with the same IP as an admin or mod to exceed log in limit
What's Changed
- Updated logic surrounding
MAX_PLAYERS_PER_IP
so mods and admins can't abuse the rule unless they are on mod or admin accounts
Testing
If for example, MAX_PLAYERS_PER_IP
is 3
:
- I am no longer able to log into 4 normal accounts just because I recently logged into an admin account with the same IP.
- I am able to log into a 4th account only if it is an admin or mod account. (This makes sense to me because mods/admins aren't trying to grind or do anything with the game's economy.)
Why?
I made this change because my server's limit is 2 players per IP, and I play on my own server legitly, and I kept accidentally breaking my own rule by logging into 3 user accounts at once. I don't think it makes any sense for people that are admins/mods to break the MAX_PLAYERS_PER_IP
rule just because they log into their user and mod/admin accounts on the same network.