main/PollSystem

http://dev.bukkit.org/media/images/75/537/map_bn3.png

Description

This part of the plugin allows you to create in-game polls. There are 3 types of polls you may start: kick / ban / fun.

The base permission for the command is map.vote.command.
Give map.vote.bypass to a player in order to make him immune to /poll kick and /poll ban

You start a poll by using this command:

CommandPermissionDescription
/poll kick PLAYERmap.vote.kickVote to kick the player
/poll ban PLAYERmap.vote.banBan a player for a certain amount of time (requires Essentials or TimeBan)
/poll fun QUESTION ANSWER [ANSWER [ANSWER [...]]]map.vote.funDo a random vote - no action will be performed by this type of vote

Please note: the QUESTION and ANSWER argument are using my reArgs function. This means you can use white spaces in a Q/A by quoteing the argument (e.g. /poll fun "Which is the best server on the World?" Ours "The others" "None of them")

Show the current poll state by just typing /poll (e.g.:
Current poll: "Which is the best server on the World?"
1) Ours (0, 0.0%)
2) The others (0, 0.0%)
3) None of them (1, 100.0%)
)

Participate in the poll by using the answers number as argument. (e.g. you want to vote for "The other", so you'll have to /poll 2)

The Config-Section

The config section is actually called "vote" - don't ask why xD

vote:
  ## minimum amount of player required to start a ban vote / successfully ban a player:
  ban_minplayer: 5 
  ## minimum percent required that has to confirm the vote:
  ban_percent: 85
  ## time in minutes the player shall be banned:
  ban_bantime: 60
  ## The experssion %timt% will be replaced with the ammount of minutes the player will be banned. This Message will be displayed as kick-message.
  ban_message: "You were banned by vote (%time% min)"
  ## This is a fallback kick-message in case no ban-engine was detected:
  ban_error_message: "I'd kick you if i could"
  ## The minimum amount of player required to to start / successfully finish a fun vote:
  custom_minplayer: 2
  ## minimum percent required that has to confirm the vote:
  custom_percent: 50
  ## minimum amount of player required to start a kick vote / successfully kick a player:
  kick_minplayer: 5
  ## minimum percent required that has to confirm the vote:
  kick_percent: 51
  ## The message displayed when being kicked by vote:
  kick_message: "You were kicked by vote"

Event Sounds

In case you got my EventSounds-Plugin installed you may use this API sounds:
votestart - triggered when a vote starts
voteend - triggered when a vote has ended

It may look something like this:

apisounds:
- votestart:es.misc.votestart
- voteend:es.misc.voteend