I wasn't sure if this necessary belonged here but it's not exclusively a programming resource (it will help all server owners), so I decided to post here. I've created a web utility based on this code to center chat messages. It's very convenient if you are wanting to send centered broadcasts, announcements, join messages, etc. but the plugin you are configuring does not have the center utility built in. Here's the resource: https://quadrex.org/center. If you really get into what you can use this for, you can center server list MOTDs and even lores/names from items (you just need to guess and check what the width of a message is). Let me know if you have any feedback or suggestions . Technically this is the second version of it but I rewrote it to be faster, easier to use, and better for power users).