Flectone Logo FlectonePulse

Question-Answer

Module responsible for responding to player questions

question


🌍 Localization

Path localizations → 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"
question_answer:
  questions:
    server: "<fcolor:2>[Вопрос-Ответ] @<player><fcolor:1>, это ванильный сервер в Майнкрафте!"
    flectone: "<fcolor:2>[Вопрос-Ответ] @<player><fcolor:1>, это бренд и проекты созданные TheFaser'ом"

questions

A list of questions and their corresponding answers


⚙️ Setting

Path message.yml → format.questionanswer
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

range

How far in blocks the message will be displayed

ValueExplanation
WORLD_TYPEThe message will be sent only to players who have the permission flectonepulse.world.type.dimension_name
WORLD_NAMEThe message will be sent only 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 the Proxy
SERVERThe message will be sent to all players on the server
PLAYERThe message will be sent only to the sender
any number greater than 0, for example range: 100The 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

TypeExplanationRequires additional configuration?
ACTION_BARMessage above the player's inventoryYes
BOSS_BARMessage at the top of the screenYes
BRANDMessage in F3No
CHATMessage in chatNo
TEXT_SCREENMessage anywhere on the screenYes
TITLEFull-screen messageYes
SUBTITLEFull-screen message (bottom line)Yes
TAB_HEADERMessage in TAB (top)No
TAB_FOOTERMessage in TAB (bottom)No
TOASTMessage in the top right corner (achievement)Yes

cooldown

Usage delay

sound

Sound playback

target

A regular expression used to search for the question


🔐 Permissions

Path permission.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

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable 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

Last updated on

Edit on GitHub

On this page

Authors of page