Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details

A server's /msg system isnt a good one if it uses the vanilla format, which is gray and italic, and doesnt stand out at all.
THIS project however gives you full control of what the /msg messages look like.
If you go into the config, it will look like this:
# Custom /msg Formatter
# PLACEHOLDERS
# <player> -- You, the player.
# <other> -- The player on the other end on the line.
# <message> -- The message that was sent through /msg.
# & -- Automatically converted to Minecraft legacy color codes. (§)
# Inbound format
# Default: "&6[&e<other> > <player>&6]:&f <message>"
inbound: "&6[&e<other> > <player>&6]:&f <message>"
# Outbound format
# Default: "&6[&e<player> > <other>&6]:&f <message>"
outbound: "&6[&e<player> > <other>&6]:&f <message>"
# Display /msg receival above the hotbar, in the action bar?
action-bar: false
action-bar-format: "&6New message from &e<player>"
Which will look like this in game:

But you are NOT limited to this.
Here are some cool format examples:
inbound: "&a✉ &b[&ffrom <other>&b] &a>&f <message>"
outbound: "&a✉ &b[&fto <other>&b] &a>&f <message>"

Mail style,
Or maybe
inbound: "&6[PM]&e <other> -> ME&6:&f <message>"
outbound: "&6[PM]&e ME -> <other>&6:&f <message>"

Clean style,
And those are only a few of the styles that you can do with this system. You can customise it to your server's style and your liking.
If you want to reload the config without restarting your server, just /reloadmsg. You need either the permission:
simplemsgformat.reload
or OPERATOR status.
And this also comes with /r, so you can message the most recent person who messaged you/you messaged.
If you enable action bar messages, it shows like this default, but you can format it as much as you want, but remember that it outputs the same as inbound!

In case someone decides to send you messages ten thousand times a minute, you can /msgtoggle to enable and disable wether you will recieve ANY private messages. This feature is more important than you think.
Heres what it all looks like:

And anyone with the permission
simplemsgformat.spy
Can read messages sent in-game.
Helpful for moderation by people who dont have access to your console logs.
Heres what it looks like:

Messages are more cleanly stored in logs too, instead of just showing as command execution.

MODERATING /msg AND /r
Our plugin does NOT moderate messages on its own for your sake. You can use other plugins or your own plugin to moderate messages and stop them before we get to them.
For your own plugin:
Our msg detector processes like this:
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onCommand(PlayerCommandPreprocessEvent event) {
String command = event.getMessage();
if (command.startsWith("/msg ")) {
If you want to stop a message, you need your plugin to intercept, check, and cancel /msg AND /r before it reaches SimpleMsgFormat. Using a priority of LOWEST, LOW, NORMAL, or HIGH is recommended, but HIGHEST may cause SimpleMsgFormat to read the msg and send it before your plugin can stop it, and when its sent, you cannot unsend it.
Using another moderation plugin:
If the moderation plugin you use can intercept command events, and it has /msg and /r as a default, you usually dont have to do anything, but in case it does have command interception but it doesnt stop commands, make sure its priority is set to LOWEST, LOW, NORMAL, or HIGH and make sure it stops the event. If your plugin doesnt read /msg, you cant stop bad messages.
If so, you have two options: Find a new moderation plugin (better long term!!) or Find a new msg formatter (boooo)
Thats it!
No extra annoying features that ruin your server.
There may be more OPTIONAL features coming, this plugin is not finished just yet.
Usage:
Perms:
simplemsgformat.reload
simplemsgformat.spy
Commands:
/reloadmsg | requires reload perm
/r
/msgtoggle
/msg is a vanilla command.


