Added Player.getDisplayName() and Player.setDisplayName(String)
This commit is contained in:
parent
bc15bdafcc
commit
6082aa143f
@ -19,4 +19,24 @@ public interface Player extends HumanEntity {
|
||||
* @param message Message to be displayed
|
||||
*/
|
||||
public void sendMessage(String message);
|
||||
|
||||
/**
|
||||
* Gets the "friendly" name to display of this player. This may include color.
|
||||
*
|
||||
* Note that this name will not be displayed in game, only in chat and places
|
||||
* defined by plugins
|
||||
*
|
||||
* @return String containing a color formatted name to display for this player
|
||||
*/
|
||||
public String getDisplayName();
|
||||
|
||||
/**
|
||||
* Sets the "friendly" name to display of this player. This may include color.
|
||||
*
|
||||
* Note that this name will not be displayed in game, only in chat and places
|
||||
* defined by plugins
|
||||
*
|
||||
* @return String containing a color formatted name to display for this player
|
||||
*/
|
||||
public void getDisplayName(String name);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user