
The ultimate customization solution for DiscordSRV.
🥏 DiscordSRV Ultimate adds:
📒 Dependencies (must-install)
ℹ️ Information
🤔 Usage
DiscordSRV Ultimate extends the possibilities of the DiscordToChatMessage format (DiscordToMinecraftChatMessageFormat and DiscordToMinecraftChatMessageFormatNoRole fields), by post-processing the output. For example, to make the role gradiented, you can use this:
[[gradient_message_$[[toprolecolor]]_#000000_[[toprolealias]]]]&8 » &7%name%%reply%:&f %message%
The example might look hard, but here's what it does:
§x§r§r§g§g§b§b to #rrggbb) to #000000 with this textTo make it work, you must also have the Gradient PAPI Expansion installed:
/papi ecloud download Gradient/papi reloadThe plugin replaces both [[ and ]] with %, as if just % was used, it would be parsed during pre-processing. Why am I post-processing it? Because I have no idea how to make all this during pre-processing (DiscordSRV events are... weird).
As mentioned earlier, $§x§r§r§g§g§b§b converts to #rrggbb. This is for the gradients (and other color manipulation) to work.
🧩 Merging
If you want to mix some of the things, e.g. smallcaps and gradient, you would have to use the Utils PAPI Expansion for that. The installation is also straightforward:
/papi ecloud download Utils/papi reloadAnd the usage is... a bit complex:
[[utils_parse_gradient_message_$[[toprolecolor]]_#000000_{dsu_smallcaps_[[toprolealias]]}]]&8 » &7%name%%reply%:&f %message%
The DSU placeholders come from this plugin and stand for DiscordSRV Ultimate.
Sadly, the plugin doesn't yet support mixing the color itself without external tools. I am planning to implement that in the next release.