mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Added new methods to Server, Player and OfflinePlayer for banning and unbanning
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user