Disable kick voting with a setting
This commit is contained in:
parent
7166571497
commit
08bc2ab8a2
3
init.lua
3
init.lua
@ -275,6 +275,8 @@ minetest.register_chatcommand("abstain", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local set = minetest.setting_get("vote.kick_vote")
|
||||||
|
if set == nil or minetest.is_yes(set) then
|
||||||
minetest.register_chatcommand("vote_kick", {
|
minetest.register_chatcommand("vote_kick", {
|
||||||
privs = {
|
privs = {
|
||||||
interact = true
|
interact = true
|
||||||
@ -313,3 +315,4 @@ minetest.register_chatcommand("vote_kick", {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user