It uses core.set_player_privs. This means it erases all other privileges if a player on one of the lists joins. (Technically this is just a bug, but it is a critical one.)
Everything is hardcoded, as the description implies:
Player names are hardcoded (and to valid names, which is a problem waiting to happen; someone installs this mod and suddenly players named Name1 and Name2 have excessive privs)
A few "rank" tables are hardcoded (owners, admins, builders, players)
The highly server-specific set of privileges assigned to members of each rank is hardcoded
It suffers from unnecessary code duplication
I think this mod is probably not general purpose enough to be very useful for others. So far it seems pretty much strictly inferior to /grant to me (note that privileges should be persisted if there isn't a mod like this one breaking them).
Hi !
Just to say that the removing all privs function is essential for me.
Let me explain : if a normal player (who just have interact and shout privs) grants him some privs, when he'll log off and re log on, his privs will be resetted to prevent this kind of error.
This mod isnt for singleplayers games. Its mainly for servers.
As i said in the description : "Adapt it for your own usage in init.lua". This clearly means that you need to change the privs for each role and add your own names instead of Name1 and Name2 etc.
This is a mod for advanced usage, not for every player.
Thank you.
Take a look at https://github.com/Bapt-Tech/privs/blob/main/init.lua. There are some problems with this.
core.set_player_privs
. This means it erases all other privileges if a player on one of the lists joins. (Technically this is just a bug, but it is a critical one.)Name1
andName2
have excessive privs)I think this mod is probably not general purpose enough to be very useful for others. So far it seems pretty much strictly inferior to
/grant
to me (note that privileges should be persisted if there isn't a mod like this one breaking them).I agree, this mod likely shouldn't have been approved to begin with.
Hi ! Just to say that the removing all privs function is essential for me. Let me explain : if a normal player (who just have interact and shout privs) grants him some privs, when he'll log off and re log on, his privs will be resetted to prevent this kind of error.
This mod isnt for singleplayers games. Its mainly for servers.
As i said in the description : "Adapt it for your own usage in init.lua". This clearly means that you need to change the privs for each role and add your own names instead of Name1 and Name2 etc.
This is a mod for advanced usage, not for every player. Thank you.