Disable kick voting with a setting
This commit is contained in:
parent
7166571497
commit
08bc2ab8a2
7
init.lua
7
init.lua
@ -275,7 +275,9 @@ minetest.register_chatcommand("abstain", {
|
|||||||
end
|
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 = {
|
privs = {
|
||||||
interact = true
|
interact = true
|
||||||
},
|
},
|
||||||
@ -312,4 +314,5 @@ minetest.register_chatcommand("vote_kick", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user