feat: Add Message#getMessageLines(char) which EpicAutomators needs

EpicAutomators just needs the method. It never existed in the core,
it has been used in the plugin since for ever essentially...
Somebody just never comitted it and published local builds I guess...

I'm annoyed
This commit is contained in:
Christian Koop 2024-10-02 14:41:46 +02:00
parent 8799a6fefc
commit f7c9dfe1c5
No known key found for this signature in database
GPG Key ID: 6A4A09E8ED946113

View File

@ -138,8 +138,11 @@ public class Message {
* @return the message
*/
public List<Component> getMessageLines() {
//return Arrays.asList(ChatColor.translateAlternateColorCodes('&', this.message.toText()).split("[\n|]"));
return AdventureUtils.splitComponent(this.message, '\n');
return getMessageLines('\n');
}
public List<Component> getMessageLines(char splitChar) {
return AdventureUtils.splitComponent(this.message, splitChar);
}
/**