Skip to content

Vote All Talk

Person8880 edited this page Jan 12, 2019 · 5 revisions

Overview

The vote all talk plugin allows players to vote to enable/disable global all talk.

Note that this plugin requires the basecommands plugin to be enabled. When a vote passes it will permanently change the all talk state until either another vote passes, or an admin changes it.

Config

The default config file should look something like this:

{
    "BlockUntilSecondsIntoMap": 0,
    "NotifyOnVote": true,
    "PercentNeeded": 0.6,
    "VoteSettings": {
        "AFKTimeInSeconds": 60,
        "ConsiderAFKPlayersInVotes": true
    },
    "VoteTimeoutInSeconds": 60,
    "__Version": "1.1"
}

The file should be called “VoteAllTalk.json” and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).

Option Description
BlockUntilSecondsIntoMap If set to a value greater than 0, voting will be blocked until this many seconds after a map change.
NotifyOnVote Whether to display votes to all players.
PercentNeeded The percentage of the total players needing to vote in order for the vote to pass.
VoteSettings Allows for controlling whether AFK players are considered in votes. Set ConsiderAFKPlayersInVotes to false to prevent AFK players from counting towards the total votes.
VoteTimeoutInSeconds After this many seconds with no votes, the vote count is reset to 0 if it never passed.

Commands

Command Chat Command Arguments Description
sh_votealltalk !votealltalk N/A Votes to enable or disable all talk.
Clone this wiki locally