mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-29 05:26:17 +01:00
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:
parent
8799a6fefc
commit
f7c9dfe1c5
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user