Implement Player#spoofChatInput method

This commit is contained in:
Luck
2018-09-20 19:42:27 +01:00
parent 8763573ae6
commit b805891d1f
3 changed files with 23 additions and 4 deletions

View File

@@ -82,4 +82,11 @@ public interface Player extends CommandSource, InboundConnection, ChannelMessage
* @param reason component with the reason
*/
void disconnect(Component reason);
/**
* Sends chat input onto the players current server as if they typed it
* into the client chat box.
* @param input the chat input to send
*/
void spoofChatInput(String input);
}