Implemented auto splitting of excessively long dialogue lines
Many new farming-related player messages added, and some existing messages updated Raking animation updated Herb picking animation updated Digging up farming patch animation updated Plant cure animation updated A scarecrow can be retrieved from a flower patch by digging it up with a spade Picking fruit/berries stops when running out of inventory space The player can no longer dig up a tree they have planted before chopping it down
This commit is contained in:
@@ -767,10 +767,15 @@ fun emote(entity: Entity, emote: Emotes) {
|
||||
|
||||
/**
|
||||
* Sends a message to the given player.
|
||||
*
|
||||
* The message will be split on word boundaries into multiple lines so
|
||||
* that none of the lines will overflow the player's message box.
|
||||
*
|
||||
* @param player the player to send the message to.
|
||||
* @param message the message to send.
|
||||
*/
|
||||
fun sendMessage(player: Player, message: String) {
|
||||
player.sendMessage(message)
|
||||
player.sendMessages(*splitLines(message, 86))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user