mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
Moved all vanilla commands into Bukkit
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -114,6 +114,25 @@ public interface Server {
|
||||
*/
|
||||
public boolean hasWhitelist();
|
||||
|
||||
/**
|
||||
* Sets the whitelist on or off
|
||||
*
|
||||
* @param value true if whitelist is on, otherwise false
|
||||
*/
|
||||
public void setWhitelist(boolean value);
|
||||
|
||||
/**
|
||||
* Gets a list of whitelisted players
|
||||
*
|
||||
* @return Set containing all whitelisted players
|
||||
*/
|
||||
public Set<OfflinePlayer> getWhitelistedPlayers();
|
||||
|
||||
/**
|
||||
* Reloads the whitelist from disk
|
||||
*/
|
||||
public void reloadWhitelist();
|
||||
|
||||
/**
|
||||
* Broadcast a message to all players.
|
||||
*
|
||||
@@ -142,6 +161,14 @@ public interface Server {
|
||||
*/
|
||||
public Player getPlayer(String name);
|
||||
|
||||
/**
|
||||
* Gets the player with the exact given name, case insensitive
|
||||
*
|
||||
* @param name Exact name of the player to retrieve
|
||||
* @return Player object or null if not found
|
||||
*/
|
||||
public Player getPlayerExact(String name);
|
||||
|
||||
/**
|
||||
* Attempts to match any players with the given name, and returns a list
|
||||
* of all possibly matches
|
||||
|
Reference in New Issue
Block a user