From 1c619cd05fe74dcf1fa3ba40ec6941a35e4aa11b Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Tue, 23 Aug 2016 17:00:23 -0700 Subject: [PATCH] Create custom "priv" mod that adds "bookmarks" privilege. --- README.md | 2 ++ mods/admin/privs/init.lua | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 mods/admin/privs/init.lua diff --git a/README.md b/README.md index f636768b..b92d67c2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/mods/admin/privs/init.lua b/mods/admin/privs/init.lua new file mode 100644 index 00000000..d61c90ff --- /dev/null +++ b/mods/admin/privs/init.lua @@ -0,0 +1,10 @@ +-- License: CC0 + +local priv = {} + +priv.bookmarks = "bookmarks" + +minetest.register_privilege(priv.bookmarks, { + description = "Can set & use bookmarks", + } +)