diff options
author | orwell <orwell@bleipb.de> | 2025-05-27 21:17:10 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-05-27 21:17:10 +0200 |
commit | 3470687be0af7254aca478ead1e9c72757edf070 (patch) | |
tree | 41781361c979cfda61a924d7471978037d68005e /ch_core/privs.lua | |
parent | 8506dd2825b715293138976a5ad1fa11a46206a7 (diff) | |
download | advtrains-cesky-hvozd.tar.gz advtrains-cesky-hvozd.tar.bz2 advtrains-cesky-hvozd.zip |
Add CH dependencies temporarily.cesky-hvozd
Before merge to master should remove them again and split out util functions (e.g. formspec lib)
Diffstat (limited to 'ch_core/privs.lua')
-rw-r--r-- | ch_core/privs.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ch_core/privs.lua b/ch_core/privs.lua new file mode 100644 index 0000000..3e2e2e8 --- /dev/null +++ b/ch_core/privs.lua @@ -0,0 +1,10 @@ +ch_core.open_submod("privs") +minetest.register_privilege("ch_events_moderator", "Rozšiřuje možnosti práce s oznámeními.") +-- právo značící registrovanou postavu +minetest.register_privilege("ch_registered_player", "Odlišuje registrované postavy od čerstvě založených.") +minetest.register_privilege("ch_trustful_player", "Poskytuje postavám důvěryhodných hráčů/ek výhody.") + +-- kouzelníci/ce nesmí vkládat do cizích inventářů +minetest.override_chatcommand("give", {privs = {give = true, protection_bypass = true, interact = true}}) + +ch_core.close_submod("privs") |