Add Player interface
This commit is contained in:
22
src/org/bukkit/Player.java
Normal file
22
src/org/bukkit/Player.java
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
package org.bukkit;
|
||||
|
||||
/**
|
||||
* Represents a player, connected or not
|
||||
*
|
||||
*/
|
||||
public interface Player {
|
||||
/**
|
||||
* Returns the name of this player
|
||||
*
|
||||
* @return Player name
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/**
|
||||
* Checks if this player is currently online
|
||||
*
|
||||
* @return true if they are online
|
||||
*/
|
||||
public boolean isOnline();
|
||||
}
|
||||
Reference in New Issue
Block a user