#2978: Allow sending messages from specific UUIDs

This commit is contained in:
Gerrygames
2020-10-17 17:46:01 +11:00
committed by md_5
parent c987ee199d
commit 8fffa206e4
3 changed files with 51 additions and 22 deletions

View File

@@ -80,6 +80,22 @@ public interface ProxiedPlayer extends Connection, CommandSender
*/
public void sendMessage(ChatMessageType position, BaseComponent message);
/**
* Send a message to this player.
*
* @param sender the sender of the message
* @param message the message to send
*/
public void sendMessage(UUID sender, BaseComponent... message);
/**
* Send a message to this player.
*
* @param sender the sender of the message
* @param message the message to send
*/
public void sendMessage(UUID sender, BaseComponent message);
/**
* Connects / transfers this user to the specified connection, gracefully
* closing the current one. Depending on the implementation, this method