Question-Answer
Module responsible for responding to player questions

How to make your own question? For example an answer about donations
In message.yml add the question to format.question_answer.questions
questions:
donate:
range: "PLAYER"
destination:
type: "CHAT"
cooldown:
enable: false
sound:
enable: false
target: "(?i)\\b(donate|ranks|how to buy)\\b"In localizations → language.yml add the answer to message.format.question_answer.questions
questions:
donate: "<fcolor:2>[Question-Answer] @<player><fcolor:1>, ranks can be bought at flectone.net"In permission.yml add a permission to message.format.question_answer.questions
questions:
donate:
name: "flectonepulse.module.message.format.questionanswer.donate"
type: "TRUE"Reload FlectonePulse with /flectonepulse reload
With range: "PLAYER" only the player who asked sees the answer, and with range: "SERVER" everyone sees it
Localization
Pathlocalizations → language.yml → message.format.question_answer
question_answer:
questions:
server: "<fcolor:2>[Answer] @<player><fcolor:1>, this is a vanilla server in minecraft!"
flectone: "<fcolor:2>[Answer] @<player><fcolor:1>, this is a brand and projects created by TheFaser"questions
A list of questions and their corresponding answers
Setting
Pathmessage.yml → format.question_answer
question_answer:
enable: false
questions:
server:
range: "PLAYER"
destination:
type: "CHAT"
cooldown:
enable: false
sound:
enable: false
target: "(?i)\\b(what\\s+is\\s+this\\s+server|what\\'?s\\s+this\\s+server|what\\s+server\\s+is\\s+this)\\b"
flectone:
range: "PLAYER"
destination:
type: "CHAT"
cooldown:
enable: false
sound:
enable: false
target: "(?i)\\b(flectone|flectonepulse|flecton)\\b"enable
Enables or disables the functionality of the module
questions
A list of questions and their settings, where the key is the question name. Names can be anything and there can be as many as you want, the main thing is that each one has a localization
target
A regular expression used to search for the question in the player's message
range
How far in blocks the message will be displayed
| Value | Explanation |
|---|---|
WORLD_TYPE | The message will be sent only to players who have the permission flectonepulse.world.type.dimension_name |
WORLD_NAME | The message will be sent only to players who have the permission flectonepulse.world.name.world_folder_name |
PROXY | The message will be sent to all players on the server and on the Proxy |
SERVER | The message will be sent to all players on the server |
PLAYER | The message will be sent only to the sender |
any number greater than 0, for example range: 100 | The message will be sent to players whose distance between them and the sender is less than this number. Players must also be in the same world as the sender |
destination
Where the message will be sent
| Type | Explanation | Requires additional configuration? |
|---|---|---|
ACTION_BAR | Message above the player's inventory | Yes |
BOSS_BAR | Message at the top of the screen | Yes |
BRAND | Message in F3 | No |
CHAT | Message in chat | No |
TEXT_SCREEN | Message anywhere on the screen | Yes |
TITLE | Full-screen message | Yes |
SUBTITLE | Full-screen message (bottom line) | Yes |
TAB_HEADER | Message in TAB (top) | No |
TAB_FOOTER | Message in TAB (bottom) | No |
TOAST | Message in the top right corner (achievement) | Yes |
cooldown
Usage delay
sound
Sound playback
Permissions
Pathpermission.yml → message.format.question_answer
question_answer:
name: "flectonepulse.module.message.format.questionanswer"
type: "TRUE"
questions:
server:
name: "flectonepulse.module.message.format.questionanswer.server"
type: "TRUE"
sound:
name: "flectonepulse.module.message.format.questionanswer.sound.server"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.message.format.questionanswer.cooldown.bypass.server"
type: "TRUE"
flectone:
name: "flectonepulse.module.message.format.questionanswer.flectone"
type: "TRUE"
sound:
name: "flectonepulse.module.message.format.questionanswer.sound.flectone"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.message.format.questionanswer.cooldown.bypass.flectone"
type: "TRUE"name
Permission name
type
Permission type
| Type | Explanation |
|---|---|
TRUE | Available to any player |
FALSE | Available to no one, must be granted separately (e.g., using LuckPerms) |
OP | Available to server operators |
NOT_OP | Available to NON-operators of the server |
questions
A list of questions and their associated permissions
sound
Permission to use the sound
cooldown_bypass
Permission to ignore the cooldown between uses