caxanga334 / cvreduxmodified

Modified version of ReFlexPoison's custom votes
GNU General Public License v3.0
15 stars 9 forks source link

Add some anti-spam chattrigger settings #13

Closed Gelikan closed 4 years ago

Gelikan commented 5 years ago

Is your feature request related to a problem? Please describe. Currently, plugin settings doesn't restrict players from spamming votes: "cooldown" only work on player, that initiated the vote, and the rest can launch vote again shortly after previous.

Describe the solution you'd like Original Custom Votes had a very useful feature: launching a vote require a chat-trigger, entered by multiple players. After the required number of triggers (ex. votecrits) was cast — vote is started.

How it described in documentaton:

Chat triggers:

trigger - A KeyValues subsection defining the chat-keyword trigger for this vote. The following options control how the chat trigger works:
    command - The chat keyword that triggers the vote
    delay - The amount of time that must pass between chat-triggered votes of this type. Equivalent to the previous (now deprecated) "playerdelay" parameter.
    notice - The message that will be printed to chat as users enter triggers (useful when requiring triggers from multiple users, see "percent" and "count" below). "%u" is replaced with the triggering player's name. Uses "title" if omitted.
    percent - The minimum percent of current connected users that must enter this trigger for the vote to launch. Defaults to 0.
    count - The minimum number of current connected users that must enter this trigger for the vote to launch. Defaults to 0.
    expires - How long (in seconds) before a user's vote trigger is expired (so that vote triggers do not build infinitely). Users that disconnect have their votes removed automatically. Defaults to 300 (5 minutes).

Describe alternatives you've considered N/A

Additional context Alternatively, work of "cooldown" may be expanded on all players for specific vote.