Translations and Custom Messages
Nexus supports multiple languages, and you can easily translate the plugin to your language. You can also customize the messages that the plugin sends to players.
Changing your server's language
By default, Nexus uses English as the main language.
You can change the language of the plugin by editing the language
option in the config.yml
file.
# Select the language of the plugin
# The following languages are supported:
# - EN - English
# - RU - Russian
language: EN
2
3
4
5
Supported languages
The languages listed below are supported out-of-the-box.
Code | Language |
---|---|
EN | English (US) |
RU | Russian |
Customising messages
Using rich text elements
Nexus supports the MiniMessage syntax for its messages. This allows you to include gradients, hoverable and clickable elements, custom fonts and more! Below is an example of hoverable/clickable elements in a Nexus message:
# {PLAYER} - Player who sent the teleport request
tpaReceivedMessage:
- "<green>You have received a teleport request from the player <white>{PLAYER}"
- "<hover:show_text:'<green>Accept request for teleports</green>'><gold><click:suggest_command:'/tpaccept {PLAYER}'><dark_gray>» <gold>/tpaccept {PLAYER} <green>to accept! <gray>(Click)</gray></click></gold></hover>"
- "<hover:show_text:'<red>Decline a teleportation request</red>'><gold><click:suggest_command:'/tpdeny {PLAYER}'><dark_gray>» <gold>/tpdeny {PLAYER} <red><green>to deny! <gray>(Click)</gray></click></gold></hover>"
2
3
4
5
You can find a full reference guide for the MiniMessage syntax on the Adventure wiki. You can also use Adventure's MiniMessageViewer to preview custom messages.
TIP
If you don't want to use MiniMessage message format, you can use the legacy text format with ampersands (&
). You can find all legacy color codes here.
Notice message format
Nexus allows sending messages to different parts of Minecraft, including the chat, action bar, title, and subtitle. All messages can be formatted using the MiniMessage syntax.
# Displays a message in the chat.
example: "Hello world!" # <- Single one line text
example2: # <- If you want display multiple lines in the chat, use the following syntax:
- "Hello"
- "world!"
2
3
4
5
# Displays a message in the action bar.
example:
actionbar: "Hello world!"
2
3
# Displays a message in the title.
example:
title: "Hello world!"
2
3
# Displays a message in the subtitle.
example:
subtitle: "Hello world!"
2
3
# Displays a message in the title or subtitle with specified times.
# P.S. This also works for subtitle
example:
title: "Hello world!"
times: "1s 2s 1s" # <- The first number is the time it takes to fade in, the second is the time it takes to stay on the screen, and the third is the time it takes to fade out.
2
3
4
5
# Plays a sound with the specified volume and pitch.
example:
sound: "ENTITY_PLAYER_LEVELUP 2.0 1.0" # <- The first number is the volume, the second is the pitch.
2
3
# Plays a sound with the specified volume and pitch.
example:
# Sound categories: https://jd.papermc.io/paper/1.21.4/org/bukkit/SoundCategory.html
sound: "PLAYER_LEVELUP WEATHER 2.0 1.0" # <- The first number is the volume, the second is the pitch.
2
3
4
Combining messages
You can combine multiple messages in one message. This is useful when you want to send a message to multiple parts of Minecraft at once.
Disabling messages
example: []
Chat + Actionbar
example:
chat: "Hello world!"
actionbar: "Hello world!"
2
3
Title + Subtitle
example:
title: "Hello world!"
subtitle: "Hello world!"
2
3
Title + Subtitle with specified times
example:
title: "Hello world!"
subtitle: "Hello world!"
times: "1s 2s 1s"
2
3
4
Chat + Actionbar + Title + Subtitle
example:
chat: "Hello world!"
actionbar: "Hello world!"
title: "Hello world!"
subtitle: "Hello world!"
2
3
4
5
Chat + Actionbar + Title + Subtitle with specified times
example:
chat: "Hello world!"
actionbar: "Hello world!"
title: "Hello world!"
subtitle: "Hello world!"
times: "1s 2s 1s"
2
3
4
5
6
Chat + Actionbar + Title + Subtitle + Sound
example:
chat: "Hello world!"
actionbar: "Hello world!"
title: "Hello world!"
subtitle: "Hello world!"
sound: "ENTITY_PLAYER_LEVELUP 2.0 1.0"
2
3
4
5
6
Chat + Actionbar + Title + Subtitle + Sound with categories
example:
chat: "Hello world!"
actionbar: "Hello world!"
title: "Hello world!"
subtitle: "Hello world!"
sound: "ENTITY_PLAYER_LEVELUP WEATHER 2.0 1.0"
2
3
4
5
6
Clearing titles
# Used when you want to clear the title or subtitle before sending a new one.
example:
titleHide: true
2
3