Added the ability to access offline players & more reverse lookup fixes in Permissible.

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2011-09-03 00:41:22 +01:00
parent 1d6801b8e6
commit 498e63dbfa
8 changed files with 43 additions and 36 deletions

View File

@@ -375,4 +375,14 @@ public interface Server {
* @return Amount of users who received the message
*/
public int broadcast(String message, String permission);
/**
* Gets the player by the given name, regardless if they are offline or online.
*
* This will return an object even if the player does not exist. To this method, all players will exist.
*
* @param name Name of the player to retrieve
* @return OfflinePlayer object
*/
public OfflinePlayer getOfflinePlayer(String name);
}