chat commands: use rl format message for pets
Co-authored-by: Illya Myshakov <imyshako@uwaterloo.ca>
This commit is contained in:
@@ -1199,7 +1199,9 @@ public class ChatCommandsPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatMessageBuilder responseBuilder = new ChatMessageBuilder().append("Pets: ")
|
ChatMessageBuilder responseBuilder = new ChatMessageBuilder()
|
||||||
|
.append(ChatColorType.NORMAL)
|
||||||
|
.append("Pets: ")
|
||||||
.append("(" + playerPetList.size() + ")");
|
.append("(" + playerPetList.size() + ")");
|
||||||
|
|
||||||
// Append pets that the player owns
|
// Append pets that the player owns
|
||||||
@@ -1216,7 +1218,8 @@ public class ChatCommandsPlugin extends Plugin
|
|||||||
|
|
||||||
log.debug("Setting response {}", response);
|
log.debug("Setting response {}", response);
|
||||||
final MessageNode messageNode = chatMessage.getMessageNode();
|
final MessageNode messageNode = chatMessage.getMessageNode();
|
||||||
messageNode.setValue(response);
|
messageNode.setRuneLiteFormatMessage(response);
|
||||||
|
chatMessageManager.update(messageNode);
|
||||||
client.refreshChat();
|
client.refreshChat();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user