Enhance the sending message API

- Change sendGameMessage call to addGameMessage to allow sending messages with all supported fields
- Update chat message manager to support sending messages with all supported fields
This commit is contained in:
Tomas Slusny
2018-02-20 13:03:14 -05:00
parent 397cb2f99f
commit 04cf082b9c
10 changed files with 82 additions and 61 deletions

View File

@@ -122,9 +122,9 @@ public abstract class RSClientMixin implements RSClient
@Inject
@Override
public void sendGameMessage(ChatMessageType type, String message)
public void addChatMessage(ChatMessageType type, String name, String message, String sender)
{
sendGameMessage(type.getType(), "", message);
addChatMessage(type.getType(), name, message, sender);
}
@Inject