[SCRIPT] alternatelogin
Posted: Fri May 01, 2015 5:40 am
Realized I never actually uploaded this script to the forums. It's an alternate login script that makes adding mod's, admin's, or other accounts easier. I also added a slightly modified passreload script to work with this. Logins are done with the normal /login command and a /whois command is added to find out who a player is logged in as.
Code: Select all
Update: Changed passreload so that user accounts can be updated without logging off and back on the server#-------------------------------------------------------------------------------
# Name: alternatelogin.py
#
# Author: TheLoneMilkMan
#-------------------------------------------------------------------------------
Allows alternate way of doing logins in config. Each user gets their own
passowrd and can then be added to a usergroup. Each usergroup's rights are
defined in "rights", except for admin. The admin group gets every command as
usual. Use modified passreload.py script to work with this format.
Config format:
############################################
"users": {
"user1" : "password1",
"user2" : "password2",
"user3" : "password3"
},
"usergroups": {
"admin": ["user1","user2"],
"mod": ["user3"]
},
"rights" : {
"mod" : ["command1", "command2"]
},
###########################################
'''