Add chat position API.
This commit is contained in:
@@ -4,6 +4,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import net.md_5.bungee.api.Callback;
|
||||
import net.md_5.bungee.api.ChatMessageType;
|
||||
import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.Title;
|
||||
import net.md_5.bungee.api.chat.BaseComponent;
|
||||
@@ -31,6 +32,22 @@ public interface ProxiedPlayer extends Connection, CommandSender
|
||||
*/
|
||||
void setDisplayName(String name);
|
||||
|
||||
/**
|
||||
* Send a message to the specified screen position of this player.
|
||||
*
|
||||
* @param position the screen position
|
||||
* @param message the message to send
|
||||
*/
|
||||
public void sendMessage(ChatMessageType position, BaseComponent... message);
|
||||
|
||||
/**
|
||||
* Send a message to the specified screen position of this player.
|
||||
*
|
||||
* @param position the screen position
|
||||
* @param message the message to send
|
||||
*/
|
||||
public void sendMessage(ChatMessageType position, BaseComponent message);
|
||||
|
||||
/**
|
||||
* Connects / transfers this user to the specified connection, gracefully
|
||||
* closing the current one. Depending on the implementation, this method
|
||||
|
Reference in New Issue
Block a user