Simplify settings definitions and namespace settings

This commit is contained in:
ShadowNinja
2014-11-17 21:16:59 -05:00
parent e4aef02cb9
commit 3f777900d4
5 changed files with 45 additions and 44 deletions

View File

@ -2,7 +2,7 @@
minetest.register_chatcommand("protect", {
params = "<AreaName>",
description = "Protect your own area",
privs = {[areas.self_protection_privilege]=true},
privs = {[areas.config.self_protection_privilege]=true},
func = function(name, param)
if param == "" then
return false, "Invalid usage, see /help protect."