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,6 +275,8 @@ minetest.register_chatcommand("abstain", {
end
})
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
@ -313,3 +315,4 @@ minetest.register_chatcommand("vote_kick", {
})
end
})
end