Disable kick voting with a setting

This commit is contained in:
rubenwardy 2015-08-26 16:12:19 +01:00
parent 7166571497
commit 08bc2ab8a2

View File

@ -275,7 +275,9 @@ minetest.register_chatcommand("abstain", {
end
})
minetest.register_chatcommand("vote_kick", {
local set = minetest.setting_get("vote.kick_vote")
if set == nil or minetest.is_yes(set) then
minetest.register_chatcommand("vote_kick", {
privs = {
interact = true
},
@ -312,4 +314,5 @@ minetest.register_chatcommand("vote_kick", {
end
})
end
})
})
end