Skip to content

/poll

Command for creating polls command pollgui

This can also be done via a command in chat command poll

INFORMATION

The interval is specified to resend message about an existing poll to chat

🌍 Localization

📂 Path localizations → locale.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> без тебя"
  format: "<br><color:#fce303>│ <status> <br>│ <message><reset> <color:#fce303><br>├─────────────<br><answers>"
  answer-template: "<color:#fce303>│ <count> → <color:#4eff52><hover:show_text:\"<color:#4eff52>Проголосовать за <bold><answer>\"><click:run_command:\"/pollvote <id> <number>\"><answer> [👍]<br>"
  status:
    start: "Создано новое голосование #<b><id></b>"
    run: "Идёт голосование #<b><id></b>"
    end: "Голосование #<b><id></b> завершено"
  modern:
    header: "Создание голосования"
    input-name: "Название"
    input-initial: ""
    multiple-name: "Разрешить несколько ответов"
    end-time-name: "Длительность (в минутах)"
    repeat-time-name: "Интервал (в минутах)"
    new-answer-button-name: "Добавить ответ"
    remove-answer-button-name: "Удалить ответ"
    input-answer-name: "Ответ <number>"
    input-answers-initial: ""
    create-button-name: "Создать голосование"
yml
poll:
  null-poll: "<color:#ff7171><b>⁉</b> Poll not found"
  expired: "<color:#ff7171><b>⁉</b> The poll has ended"
  already: "<color:#ff7171><b>⁉</b> You have already voted in this poll"
  vote-true: "<color:#4eff52>👍 You voted for option <answer_id> in poll #<id>. There are <count> of you"
  vote-false: "<color:#ff4e4e>🖓 You rejected option <answer_id> in poll #<id>. There are <count> without you"
  format: "<br><color:#fce303>│ <status> <br>│ <message><reset> <color:#fce303><br>├─────────────<br><answers>"
  answer-template: "<color:#fce303>│ <count> → <color:#4eff52><hover:show_text:\"<color:#4eff52>Vote for <bold><answer>\"><click:run_command:\"/pollvote <id> <number>\"><answer> [👍]<br>"
  status:
    start: "New poll #<b><id></b> has been created"
    run: "Poll #<b><id></b> is in progress"
    end: "Poll #<b><id></b> has ended"
  modern:
    header: "Poll"
    input-name: "Name"
    input-initial: ""
    multiple-name: "Allow multiple answers"
    end-time-name: "Duration (min)"
    repeat-time-name: "Interval (min)"
    new-answer-button-name: "Add answer"
    remove-answer-button-name: "Remove answer"
    input-answer-name: "Answer <number>"
    input-answers-initial: ""
    create-button-name: "Create poll"

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

format

The format of the message that will be sent

answer-template

Template for each answer

status

Headers for each voting status

start

Header when the voting starts

run

Header when the voting is reposted

end

Header when the voting ends

modern

Dialog system for creating a poll

Dialog name

input-name

Name for "name" field

input-initial

Default text for "name" field

multiple-name

Name for "allow multiple answers" toggle field

end-time-name

Name for duration field

repeat-time-name

Name for interval field

new-answer-button-name

Name for button that creates a new answer

remove-answer-button-name

Name for button that removes the last answer

input-answer-name

Name for new answer field

input-answers-initial

Default text for answer field

create-button-name

Name for button that creates poll

⚙️ Setting

📂 Path command.yml → poll

⚖️ Default

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

enable

Enables or disables the functionality of the module

enable-gui

WARNING

Only works for versions 1.21.6 and newer. Command will not be registered in older versions

Adds a new command /pollgui (depends on command name itself, i.e., /name + gui)

range

How far in blocks the message will be displayed

ValueExplanation
WORLD_TYPEThe message will only be sent to players who have the permission flectonepulse.world.type.dimension_name
WORLD_NAMEThe message will only be sent to players who have the permission flectonepulse.world.name.world_folder_name
PROXYThe message will be sent to all players on the server and on Proxy
SERVERThe message will be sent to all players on the server
PLAYERThe message will only be sent to the sender
Any number greater than 0 (e.g., range: 100)The message will be sent to players whose distance from the sender is less than this number. Players must also be in the same world 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

HOW TO USE COOLDOWN?

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

The cooldown configuration will look like this:

yaml
cooldown:
  enable: true
  duration: 60
FieldTypeExplanation
enablebooleanEnables the cooldown functionality
durationlongHow many ticks must pass between uses

sound

Sound playback

HOW TO USE SOUND?

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

yaml
sound:
  enable: true
  volume: 1.0
  pitch: 1.0
  category: "HOSTILE"
  name: "minecraft:entity.llama.spit"
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

🔐 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 to any player
FALSENot available to anyone, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to not server operators

create

Permission for creating polls

cooldown-bypass

Permission to bypass the cooldown between uses

sound

Permission to use sound