Command /poll
Command for creating and managing polls
🌍 Localization
📂 Path localizations → язык.yml → command.poll
⚖️ Default
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> <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> завершено"
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 <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"
format: "<br><color:#fce303>│ <status> <br>│ <message> <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"
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
⚙️ Setting
📂 Path command.yml → poll
⚖️ Default
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
Value | Explanation |
---|---|
-4 | The message will only be sent to players who have the permission flectonepulse.world.type.dimension_name |
-3 | The message will only be sent to players who have the permission flectonepulse.world.name.world_folder_name |
-2 | The message will be sent to all players on the server and on Proxy |
-1 | The message will be sent to all players on the server |
0 | The message will only be sent to the sender |
any number > 0 | The message will be sent to players whose distance from the sender is less than this number |
NOTE
If a range greater than 0
is specified, 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
Field | Type | Explanation |
---|---|---|
enable | boolean | Enables the cooldown functionality |
duration | long | How 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:
cooldown:
enable: true
duration: 60
sound
Sound playback
Field | Type | Explanation |
---|---|---|
enable | boolean | Enables sound functionality |
volume | float | Sound volume from 0 to 1.0 |
pitch | float | Sound pitch from 0 to 1.0 |
category | String | Category from MASTER , MUSIC , RECORD , WEATHER , BLOCK , HOSTILE , NEUTRAL , PLAYER , AMBIENT , VOICE |
name | String | Sound 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:
sound:
enable: true
volume: 1.0
pitch: 1.0
category: "HOSTILE"
name: "minecraft:entity.llama.spit"
🔐 Permissions
📂 Path permission.yml → command.poll
⚖️ Default
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
Type | Explanation |
---|---|
TRUE | Available to any player |
FALSE | Not available to anyone, must be granted separately (e.g., using LuckPerms) |
OP | Available to server operators |
NOT_OP | Available to not server operators |
create
Permission for creating polls
cooldown-bypass
Permission to bypass the cooldown between uses
sound
Permission to use sound