aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-06-24 18:21:19 +0000
committerGitHub <noreply@github.com>2021-06-24 21:21:19 +0300
commit63fc728a84a5ba97240233ad1c5d94f1ade2deb1 (patch)
tree61829a140b98519fbfa7920d79495e0c0692ad1b /builtin/game
parent51bf4a6e26f9eca461ae88181b06b517afc4d656 (diff)
downloadminetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.tar.gz
minetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.tar.bz2
minetest-63fc728a84a5ba97240233ad1c5d94f1ade2deb1.zip
Require 'basic_debug' priv to view gameplay-relevant debug info, require 'debug' priv to view wireframe (#9315)
Fixes #7245.
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/privileges.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/builtin/game/privileges.lua b/builtin/game/privileges.lua
index 1d3efb525..97681655e 100644
--- a/builtin/game/privileges.lua
+++ b/builtin/game/privileges.lua
@@ -97,10 +97,13 @@ core.register_privilege("rollback", {
description = S("Can use the rollback functionality"),
give_to_singleplayer = false,
})
+core.register_privilege("basic_debug", {
+ description = S("Can view more debug info that might give a gameplay advantage"),
+ give_to_singleplayer = false,
+})
core.register_privilege("debug", {
- description = S("Allows enabling various debug options that may affect gameplay"),
+ description = S("Can enable wireframe"),
give_to_singleplayer = false,
- give_to_admin = true,
})
core.register_can_bypass_userlimit(function(name, ip)