Files
paper-mc/paper-api/src/main/java/org/bukkit/Player.java
Bukkit/Spigot 0e16bbed64 Merge branch 'master' of https://github.com/Bukkit/Bukkit
Conflicts:
	src/main/java/org/bukkit/Player.java

By: Tahg <tahgtahv@gmail.com>
2011-01-10 17:27:51 -05:00

51 lines
1.3 KiB
Java

package org.bukkit;
import java.net.InetSocketAddress;
/**
* Represents a player, connected or not
*
*/
public interface Player extends HumanEntity {
/**
* Checks if this player is currently online
*
* @return true if they are online
*/
public boolean isOnline();
/**
* Sends this player a message, which will be displayed in their chat
*
* @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 setDisplayName(String name);
/**
* Gets the socket address of this player
* @return the player's address
*/
public InetSocketAddress getAddress();
}