diff options
author | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2020-05-04 10:03:45 +0200 |
---|---|---|
committer | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2020-05-04 10:03:45 +0200 |
commit | 17915aa4c5d17ccdbc2f1d68e98d66cd0a945092 (patch) | |
tree | 632f3f7636097cf6a1c8303fc53d8f33d67f2814 /chatcommands.lua | |
parent | a6c03a3206527a00385c4b7d05ec2de3f2747e15 (diff) | |
download | mesecons_debug-17915aa4c5d17ccdbc2f1d68e98d66cd0a945092.tar.gz mesecons_debug-17915aa4c5d17ccdbc2f1d68e98d66cd0a945092.zip |
modernize a bit
Diffstat (limited to 'chatcommands.lua')
-rw-r--r-- | chatcommands.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chatcommands.lua b/chatcommands.lua index 58792c3..1e61504 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -46,3 +46,19 @@ minetest.register_chatcommand("mesecons_disable", { return true, "mesecons disabled" end }) + +minetest.register_chatcommand("mesecons_whitelist_add", { + description = "adds the current mapblock to the whitelist", + privs = {mesecons_debug=true}, + func = function() + return true, "mesecons disabled" + end +}) + +minetest.register_chatcommand("mesecons_whitelist_remove", { + description = "removes the current mapblock from the whitelist", + privs = {mesecons_debug=true}, + func = function() + return true, "mesecons disabled" + end +}) |