Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 16, 2022
1 parent bfafc31 commit 4d372f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mods/vote/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ minetest.register_chatcommand("vote_mute", {
if not minetest.player_exists(param) then return false, "Player does not exist" end
local hasshout = minetest.check_player_privs(param, {shout = true})
if not hasshout then return false, "Player is already muted. do /vote_unmute to unmute." end
minetest.chat_send_all(name.." has started a vote to Mute "..param)
return vote.new_vote(name, {
description = "Mute "..param..".",
help = "/yes, /no or /abstain",
Expand Down Expand Up @@ -370,6 +371,7 @@ minetest.register_chatcommand("vote_unmute", {
if not minetest.player_exists(param) then return false, "Player does not exist" end
local hasshout = minetest.check_player_privs(param, {shout = true})
if hasshout then return false, "Player is not muted. do /vote_mute to mute." end
minetest.chat_send_all(name.." has started a vote to Unmute "..param)
return vote.new_vote(name, {
description = "Unmute "..param..".",
help = "/yes, /no or /abstain",
Expand Down

0 comments on commit 4d372f8

Please sign in to comment.