bytzo / sessility

AFK utilities for the server: Keeps track of sessile creatures, more often known as "AFK players".
https://modrinth.com/mod/sessility
MIT License
4 stars 4 forks source link

Chat announcement #8

Closed Nemiix1 closed 4 months ago

Nemiix1 commented 6 months ago

Is it possible to change the colour and font of the text that announces when a player goes sessile and when they become motile, Its the same colour as when a player leaves and joins and I wish to be able to make it grey and italic.

bytzo commented 6 months ago

Formatting codes are supported if you want to change the color and style of motility messages. However, there is currently a bug causing translatable arguments (the %s that represents a player's name) to reset the message formatting, making it impossible to format the player name along with the rest of the motility message.

I have pushed a fix for this bug, which for now can be downloaded under the Artifacts section of this page until a proper release of Sessility is out. Below, I've also provided an example snippet of a sessility.properties file that uses formatting codes to make the motility messages grey and italic.

message-sessile=§7§o%s became a sessile creature
message-motile=§7§o%s returned from the depths

And here is the updated build, in action! (Ignore the polar bear, I was fine):

Let me know if this build works as expected for you!

bytzo commented 4 months ago

This issue should be resolved with the release of Sessility 0.6! It should now be possible to have almost complete control over the formatting of sessile and motile messages.