Added new methods to Server, Player and OfflinePlayer for banning and unbanning

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-03 02:13:37 +01:00
parent 6d43d89f5e
commit 93040c71de
3 changed files with 25 additions and 0 deletions

View File

@@ -16,4 +16,18 @@ public interface OfflinePlayer extends ServerOperator {
* @return Player name
*/
public String getName();
/**
* Checks if this player is banned or not
*
* @return true if banned, otherwise false
*/
public boolean isBanned();
/**
* Bans or unbans this player
*
* @param banned true if banned
*/
public void setBanned(boolean banned);
}