Create custom "priv" mod that adds "bookmarks" privilege.

This commit is contained in:
AntumDeluge 2016-08-23 17:00:23 -07:00
parent 528c34147c
commit 1c619cd05f
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@ The following mods are also included:
* admin/
* [clean][] (WTFPL)
* [invisible][] ([LGPL / CC BY-SA](mods/admin/invisible/readme.txt))
* [privs][] ([CC0](mods/admin/privs/init.lua))
* [adv_spawning][] ([???](mods/adv_spawning/README.txt))
* [animalmaterials (modpack)][animalmaterials] (CC-BY-SA / CC0)
* [awards][] ([LGPL](mods/awards/LICENSE.txt))
@ -183,6 +184,7 @@ The following mods are also included:
[pipeworks]: https://forum.minetest.net/viewtopic.php?t=2155
[plantlife_modpack]: https://forum.minetest.net/viewtopic.php?f=11&t=3898
[playeranim]: https://forum.minetest.net/viewtopic.php?t=12189
[privs]: mods/admin/privs
[quartz]: https://forum.minetest.net/viewtopic.php?t=5682
[signs_lib]: https://forum.minetest.net/viewtopic.php?f=11&t=13762
[spidermob]: https://forum.minetest.net/viewtopic.php?t=10045

10
mods/admin/privs/init.lua Normal file
View File

@ -0,0 +1,10 @@
-- License: CC0
local priv = {}
priv.bookmarks = "bookmarks"
minetest.register_privilege(priv.bookmarks, {
description = "Can set & use bookmarks",
}
)