added getAddress interface for Player

By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-01-10 17:24:35 -05:00
parent 6f77375dc5
commit f3d9273819
2 changed files with 18 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
package org.bukkit;
import java.net.InetSocketAddress;
/**
* Represents a player, connected or not
*
@@ -19,4 +21,10 @@ public interface Player extends HumanEntity {
* @param message Message to be displayed
*/
public void sendMessage(String message);
/**
* Gets the socket address of this player
* @return the player's address
*/
public InetSocketAddress getAddress();
}