screepsmod-admin-utils
screepsmod-admin-utils copied to clipboard
Add banUser & unbanUser
Just setting active to 0 is not enough, this happens to users sometimes anyway. https://github.com/ScreepsMods/screepsmod-admin-utils/blob/master/lib%2Fcronjobs%2FinactiveUserCleanup.js
An alternative would probably be set banned to true and adjust the whitelist cron to check it as well.
An alternative would probably be set
bannedto true and adjust the whitelist cron to check it as well.
blocked or banned? I don't think banned is a thing right now, but blocked has a couple references around.
cant set blocked since the whitelist cron would overwrite it, instead, can add banned (it doesnt exist, but can be added anyway), then have the whitelist check it when setting blocked.
Okay, updated to set banned on the user along with active: 0 to stop their processing. I've checked that even in the whitelist, a banned user stays disabled.
Could I get that one merged at some point?
Thanks!