chat commands: use rl format message for pets

Co-authored-by: Illya Myshakov <imyshako@uwaterloo.ca>
This commit is contained in:
Illya Myshakov
2021-07-21 18:25:00 -04:00
committed by GitHub
parent 671ef69db6
commit 21748c60f8

View File

@@ -1199,7 +1199,9 @@ public class ChatCommandsPlugin extends Plugin
return;
}
ChatMessageBuilder responseBuilder = new ChatMessageBuilder().append("Pets: ")
ChatMessageBuilder responseBuilder = new ChatMessageBuilder()
.append(ChatColorType.NORMAL)
.append("Pets: ")
.append("(" + playerPetList.size() + ")");
// Append pets that the player owns
@@ -1216,7 +1218,8 @@ public class ChatCommandsPlugin extends Plugin
log.debug("Setting response {}", response);
final MessageNode messageNode = chatMessage.getMessageNode();
messageNode.setValue(response);
messageNode.setRuneLiteFormatMessage(response);
chatMessageManager.update(messageNode);
client.refreshChat();
}