A minimalistic chat plugin.
Spigot/Paper/Bukkit 1.16.5+
The plugin adds support of 3 types of messages: Global, Local and Private.
- Global messages are visible to all players on the server.
- Local messages are only visible to players within the certain radius from the sender.
- Private messages are only visible to the specific player the sender specified.
If needed, local messages can be disabled by setting
enableLocal: false
If local messages are enabled, all messages by default become local messages. To send a global message, the text of the message has to start with specific prefix. By default it's !
.
E.g.
> Hello World!
[Local] Hello World!
> !Hello World!
[Global] Hello World!
To change the prefix for global messages, you need to change this setting
globalPrefix: "!"
To send a private message, you should use the command
/msg MikChan Hello, MikChan!
Also you can use this command to reply back to the last person who sent a message to you
/r Hello Back!
The plugin also lets you change how messages look like by modifying these settings.
globalTemplate: '<:player:> :message:'
localTemplate: '<:player:> :message:'
privateTemplate: '<:player_from: to :player_to:> :message:'
consoleTemplate: '<CONSOLE to :player_to:> :message:'
As you can notice, there are some unusual looking placeholders.
:player:
is replaced with the senders name.:player_from:
is replaced with the senders name. Works only inprivateTemplate
.:player_to:
is replaced with the recipients name. Works only inprivateTemplate
andconsoleTemplate
.:message:
is replaced with the text of the message.
If you wonder why consoleTemplate
is needed: the private messages can be sent from the console, but since console has no username, it has to be formatted separately.
This plugin supports PAPI placeholders. There are PAPI specific settings in the config.
playerTemplate: '%player_name%'
fromTemplate: '%player_name%'
toTemplate: '%player_name%'
If PAPI is present
:player:
will be replaced withplayerTemplate
.:player_from:
will be replaced withfromTemplate
.:player_to:
will be replaced withtoTemplate
.
If PAPI is not present in the plugin list, these settings will be simply ignored.