Skip to content

Command /poll

Command for creating and managing polls command poll

🌍 Localization

📂 Path localizations → язык.yml → command.poll

⚖️ Default

yml
poll:
  null-poll: "<color:#ff7171><b>⁉</b> Голосование не найдено"
  expired: "<color:#ff7171><b>⁉</b> Голосование завершено"
  already: "<color:#ff7171><b>⁉</b> Ты уже проголосовал в этом голосовании"
  vote-true: "<color:#4eff52>👍 Ты выбрал <answer_id> в голосовании #<id>. Всего таких голосов <count>"
  vote-false: "<color:#ff4e4e>🖓 Ты передумал об <answer_id> в голосовании #<id>. Всего таких голосов <count> без тебя"
  count-answers: "<color:#4eff52><bold><count></bold> за [<answer_key>] - <answer_value> <br>"
  vote-button: "<color:#4eff52><hover:show_text:\"<color:#4eff52>Проголосовать за <bold><answer_key>\"><click:run_command:\"/poll vote <id> <number>\">[<answer_key>] - <answer_value> <br>"
  format-start: "<br><color:#fce303>🗐 Создано голосование #<id> <br>❓ <message> <br><answers>"
  format-over: "<br><color:#fce303>🗐 Голосование #<id> завершено <br>❓ <message> <br>Результат: <br><answers>"
yml
poll:
  null-poll: "<color:#ff7171><b>⁉</b> This poll does not exist"
  expired: "<color:#ff7171><b>⁉</b> This poll has already ended"
  already: "<color:#ff7171><b>⁉</b> You've already voted in this poll"
  vote-true: "<color:#4eff52>👍 You voted for <answer_id> in poll #<id>. There are <count> of you"
  vote-false: "<color:#ff4e4e>🖓 You rejected <answer_id> in poll #<id>. There are <count> without you"
  count-answers: "<color:#4eff52><bold><count></bold> for [<answer_key>] - <answer_value> <br>"
  vote-button: "<color:#4eff52><hover:show_text:\"<color:#4eff52>Vote for <bold><answer_key>\"><click:run_command:\"/poll vote <id> <number>\">[<answer_key>] - <answer_value> <br>"
  format-start: "<br><color:#fce303>🗐 There's a poll #<id> going on right now <br>❓ <message> <br><answers>"
  format-over: "<br><color:#fce303>🗐 Poll #<id> is over <br>❓ <message> <br>Votes: <br><answers>"

null-poll

Message when the poll is not found

expired

Message when the player attempts to vote in an expired poll

already

Message when the player attempts to vote again in the same poll

vote-true

Message when the player has voted for a particular option

vote-false

Message when the player removes their vote

count-answers

Format for counting votes

vote-button

Format for the vote button message

format-start

Format for the start of the poll

format-over

Format for the end of the poll

⚙️ Setting

📂 Path command.yml → poll

⚖️ Default

yml
poll:
  enable: true
  range: -2
  last-id: 1
  aliases:
    - "poll"
  cooldown:
    enable: false
  sound:
    enable: false

enable

Enables or disables the functionality of the module

range

How far in blocks the message will be displayed

ValueExplanation
-2The message will be sent to all players on the server and on Proxy
-1The message will be sent to all players on the server
0The message will be sent only to the sender
Any number > 0The message will be sent to players whose distance from the sender is less than this number

NOTE

If the range is greater than 0, for example 100, the recipients must also be in the same dimension as the sender

last-id

Last poll ID created

aliases

List of aliases for using the command

ALIASES CAN BE ANYTHING

For example, newcommand, новаякоманда, ban, me, etc.

cooldown

Usage cooldown

FieldTypeExplanation
enablebooleanEnables the cooldown functionality
durationlongHow many ticks must pass between uses

HOW TO USE COOLDOWN?

Replace false with true and restart FlectonePulse using the /flectonepulse reload command. Additional cooldown settings will appear AFTER RELOADING.

The cooldown configuration will look like this:

yaml
cooldown:
  enable: true
  duration: 60

sound

Sound playback

FieldTypeExplanation
enablebooleanEnables sound functionality
volumefloatSound volume from 0 to 1.0
pitchfloatSound pitch from 0 to 1.0
categoryStringCategory from MASTER, MUSIC, RECORD, WEATHER, BLOCK, HOSTILE, NEUTRAL, PLAYER, AMBIENT, VOICE
nameStringSound name, for example minecraft:entity.llama.spit

HOW TO USE SOUND?

Replace false with true and restart FlectonePulse using the /flectonepulse reload command. Additional sound settings will appear AFTER RELOADING.

The sound configuration will look like this:

yaml
sound:
  enable: true
  volume: 1.0
  pitch: 1.0
  category: "HOSTILE"
  name: "minecraft:entity.llama.spit"

🔐 Permissions

📂 Path permission.yml → command.poll

⚖️ Default

yml
poll:
  name: "flectonepulse.module.command.poll"
  type: TRUE
  create:
    name: "flectonepulse.module.command.poll.create"
    type: OP
  cooldown-bypass:
    name: "flectonepulse.module.command.poll.cooldown.bypass"
    type: OP
  sound:
    name: "flectonepulse.module.command.poll.sound"
    type: TRUE

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable for any player
FALSEAvailable if granted separately (e.g., via LuckPerms)
OPAvailable for server operators
NOT_OPAvailable if granted separately (e.g., via LuckPerms)

create

Permission for creating polls

cooldown-bypass

Permission to bypass the cooldown between uses

sound

Permission to use sound