Moved all vanilla commands into Bukkit

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-03 04:37:23 +01:00
parent b1dae4a0a8
commit 715dcf90c8
27 changed files with 1038 additions and 10 deletions

View File

@@ -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