AdvancedPlugins / Chat

The Best Chat Plugin for Spigot Servers, including AI chat monitoring, endless formatting capabilities, custom commands and way more
4 stars 5 forks source link

Gradient's not supported in MOTD #108

Closed Sp00kableDev closed 3 months ago

Sp00kableDev commented 3 months ago

Describe the bug

Using a gradient in the MOTD section results in a string out of bounds error.

Version: 1.2.4

How to reproduce

Use gradient with minimessage in the MOTD section: ' '

(taken from the announcements section)

Results in the following: [22.06 02:35:40] [Server] java.lang.StringIndexOutOfBoundsExceptionRange [-1, 6) out of bounds for length 118

Screenshots / Videos

Config is below: `chatMotd: # Leave empty to disable

Server Log

https://mcpaste.io/0d33ad09ef5960bc

ThomasWega commented 3 months ago

Try moving the strikethrough before the gradient tag

Sp00kableDev commented 3 months ago

Moving strikthrough before the gradient also does not work, however static colors are just fine, so i'm just going to be using them until it's fixed.

This is the line i've just tried

Sp00kableDev commented 3 months ago

unfortunately github takes away the config so to further help I will put the config in a mcpaste link below:

https://mcpaste.io/f0b7b4ce0237365d

Sp00kableDev commented 3 months ago

Try moving the strikethrough before the gradient tag

Just going to leave a proper reply here as well so you're aware :))

ThomasWega commented 3 months ago

Will be fixed in the next update