aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-11-06 00:37:20 +0100
committerparamat <mat.gregory@virginmedia.com>2016-11-07 21:55:17 +0000
commite82bd3f067d76b2043a3bcc55fca42de26b5dc4d (patch)
tree88097d8aa897cbf51d3e08331e7ee049ab14d113 /builtin/game
parent295232667eb25f6eef9ed3b06d6a71a5cdcc9476 (diff)
downloadminetest-e82bd3f067d76b2043a3bcc55fca42de26b5dc4d.tar.gz
minetest-e82bd3f067d76b2043a3bcc55fca42de26b5dc4d.tar.bz2
minetest-e82bd3f067d76b2043a3bcc55fca42de26b5dc4d.zip
Privileges: Only give singleplayer 4 basic privs
- interact - shout - privs - basic_privs
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/privileges.lua50
1 files changed, 39 insertions, 11 deletions
diff --git a/builtin/game/privileges.lua b/builtin/game/privileges.lua
index f89514134..56e090f4c 100644
--- a/builtin/game/privileges.lua
+++ b/builtin/game/privileges.lua
@@ -26,21 +26,46 @@ function core.register_privilege(name, param)
end
core.register_privilege("interact", "Can interact with things and modify the world")
-core.register_privilege("teleport", "Can use /teleport command")
-core.register_privilege("bring", "Can teleport other players")
-core.register_privilege("settime", "Can use /time")
-core.register_privilege("privs", "Can modify privileges")
+core.register_privilege("shout", "Can speak in chat")
core.register_privilege("basic_privs", "Can modify 'shout' and 'interact' privileges")
-core.register_privilege("server", "Can do server maintenance stuff")
+core.register_privilege("privs", "Can modify privileges")
+
+core.register_privilege("teleport", {
+ description = "Can use /teleport command",
+ give_to_singleplayer = false,
+})
+core.register_privilege("bring", {
+ description = "Can teleport other players",
+ give_to_singleplayer = false,
+})
+core.register_privilege("settime", {
+ description = "Can use /time",
+ give_to_singleplayer = false,
+})
+core.register_privilege("server", {
+ description = "Can do server maintenance stuff",
+ give_to_singleplayer = false,
+})
core.register_privilege("protection_bypass", {
description = "Can bypass node protection in the world",
give_to_singleplayer = false,
})
-core.register_privilege("shout", "Can speak in chat")
-core.register_privilege("ban", "Can ban and unban players")
-core.register_privilege("kick", "Can kick players")
-core.register_privilege("give", "Can use /give and /giveme")
-core.register_privilege("password", "Can use /setpassword and /clearpassword")
+core.register_privilege("ban", {
+ description = "Can ban and unban players",
+ give_to_singleplayer = false,
+})
+core.register_privilege("kick", {
+ description = "Can kick players",
+ give_to_singleplayer = false,
+})
+core.register_privilege("give", {
+ description = "Can use /give and /giveme",
+ give_to_singleplayer = false,
+})
+core.register_privilege("password", {
+ description = "Can use /setpassword and /clearpassword",
+ give_to_singleplayer = false,
+})
core.register_privilege("fly", {
description = "Can fly using the free_move mode",
give_to_singleplayer = false,
@@ -53,7 +78,10 @@ core.register_privilege("noclip", {
description = "Can fly through walls",
give_to_singleplayer = false,
})
-core.register_privilege("rollback", "Can use the rollback functionality")
+core.register_privilege("rollback", {
+ description = "Can use the rollback functionality",
+ give_to_singleplayer = false,
+})
core.register_privilege("zoom", {
description = "Can zoom the camera",
give_to_singleplayer = false,