Enable plugins to hook server message response

* Add message handler so that the plugin can hook inside the `dropMessage` method for `Player` instance.
This commit is contained in:
mingjun97
2022-05-03 00:42:49 -07:00
committed by Melledy
parent 5b6da38160
commit 0421d912fd
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
package emu.grasscutter.utils;
public class MessageHandler {
private String message;
public MessageHandler(){
this.message = "";
}
public void append(String message){
this.message += message;
}
public String getMessage(){
return this.message;
}
public void setMessage(String message){
this.message = message;
}
}