aboutsummaryrefslogtreecommitdiff
path: root/builtin/privileges.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-04-27 17:55:49 -0400
committerShadowNinja <shadowninja@minetest.net>2014-05-07 17:14:23 -0400
commit1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528 (patch)
tree8c1e2c708f567656684e89faee4f7c8e6c5ec673 /builtin/privileges.lua
parentfef2729fd0945601e6772780514ee55fec35b068 (diff)
downloadminetest-1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528.tar.gz
minetest-1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528.tar.bz2
minetest-1cd512913e4d4ad1fb43d4b6e3d7971bb6c67528.zip
Organize builtin into subdirectories
Diffstat (limited to 'builtin/privileges.lua')
-rw-r--r--builtin/privileges.lua53
1 files changed, 0 insertions, 53 deletions
diff --git a/builtin/privileges.lua b/builtin/privileges.lua
deleted file mode 100644
index 244aa453c..000000000
--- a/builtin/privileges.lua
+++ /dev/null
@@ -1,53 +0,0 @@
--- Minetest: builtin/privileges.lua
-
---
--- Privileges
---
-
-minetest.registered_privileges = {}
-
-function minetest.register_privilege(name, param)
- local function fill_defaults(def)
- if def.give_to_singleplayer == nil then
- def.give_to_singleplayer = true
- end
- if def.description == nil then
- def.description = "(no description)"
- end
- end
- local def = {}
- if type(param) == "table" then
- def = param
- else
- def = {description = param}
- end
- fill_defaults(def)
- minetest.registered_privileges[name] = def
-end
-
-minetest.register_privilege("interact", "Can interact with things and modify the world")
-minetest.register_privilege("teleport", "Can use /teleport command")
-minetest.register_privilege("bring", "Can teleport other players")
-minetest.register_privilege("settime", "Can use /time")
-minetest.register_privilege("privs", "Can modify privileges")
-minetest.register_privilege("basic_privs", "Can modify 'shout' and 'interact' privileges")
-minetest.register_privilege("server", "Can do server maintenance stuff")
-minetest.register_privilege("shout", "Can speak in chat")
-minetest.register_privilege("ban", "Can ban and unban players")
-minetest.register_privilege("kick", "Can kick players")
-minetest.register_privilege("give", "Can use /give and /giveme")
-minetest.register_privilege("password", "Can use /setpassword and /clearpassword")
-minetest.register_privilege("fly", {
- description = "Can fly using the free_move mode",
- give_to_singleplayer = false,
-})
-minetest.register_privilege("fast", {
- description = "Can walk fast using the fast_move mode",
- give_to_singleplayer = false,
-})
-minetest.register_privilege("noclip", {
- description = "Can fly through walls",
- give_to_singleplayer = false,
-})
-minetest.register_privilege("rollback", "Can use the rollback functionality")
-