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:
@@ -40,7 +40,7 @@ public interface Client extends GameEngine
|
||||
|
||||
int getRealSkillLevel(Skill skill);
|
||||
|
||||
void sendGameMessage(ChatMessageType type, String message);
|
||||
void addChatMessage(ChatMessageType type, String name, String message, String sender);
|
||||
|
||||
GameState getGameState();
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import net.runelite.api.ChatMessageType;
|
||||
public class ChatMessage
|
||||
{
|
||||
private ChatMessageType type;
|
||||
private String sender;
|
||||
private String name;
|
||||
private String message;
|
||||
private String clan;
|
||||
private String sender;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user