/translateto
Command to translate a message from one language to another

🌍 Localization
Pathlocalizations → language.yml → command.translateto
translateto:
null_or_error: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Error, you may have specified an unsupported language"
format: "<fcolor:1>📖 Translation to [<language>] → <fcolor:2><message>"translateto:
null_or_error: "<color:#ff7171><sprite_or:⁉:gui:icon/chat_modified>Ошибка, возможно указан неправильный язык"
format: "<fcolor:1>📖 Перевод на [<language>] → <fcolor:2><message>"null_or_error
Message if an error occurred during translation
format
Format of the message that will be sent
⚙️ Setting
Pathcommand.yml → translateto
translateto:
enable: true
range: "PLAYER"
service: "GOOGLE"
aliases:
- "translateto"
languages:
- "en_us"
- "ru_ru"
destination:
type: "CHAT"
cooldown:
enable: false
sound:
enable: falseenable
Enables or disables the functionality of the module
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 |
service
Type of API (DEEPL, GOOGLE, YANDEX) that will be used for translation
Attention
DEEPL and YANDEX require a token and separate configuration in integration.yml
aliases
A list of aliases for using the command
ALIASES CAN BE ANYTHING
For example newcommand, newcommand_ru, ban, me etc.
languages
List of languages used only for suggestions when using the command
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 → command.translateto
translateto:
name: "flectonepulse.module.command.translateto"
type: "TRUE"
cooldown_bypass:
name: "flectonepulse.module.command.translateto.cooldown.bypass"
type: "OP"
sound:
name: "flectonepulse.module.command.translateto.sound"
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 |
cooldown_bypass
Permission to ignore the cooldown between uses
sound
Permission to use the sound
Last updated on
Edit on GitHub
FlectonePulse