Add permissions

This commit is contained in:
md_5
2013-01-18 11:11:52 +11:00
parent 32ef5212f8
commit df37612494
5 changed files with 72 additions and 22 deletions

View File

@@ -20,7 +20,8 @@ public interface CommandSender
public void sendMessage(String message);
/**
* Get all groups this user is part of.
* Get all groups this user is part of. This returns an unmodifiable
* collection.
*
* @return the users groups
*/

View File

@@ -90,6 +90,13 @@ public abstract class ProxyServer
*/
public abstract PluginManager getPluginManager();
/**
* Returns the currently in use configuration adapter.
*
* @return the used configuration adapter
*/
public abstract ConfigurationAdapter getConfigurationAdapter();
/**
* Set the configuration adapter to be used. Must be called from
* {@link Plugin#onLoad()}.

View File

@@ -13,6 +13,14 @@ public interface ReconnectHandler
*/
public String getServer(ProxiedPlayer player);
/**
* Save the server of this player before they disconnect so it can be
* retrieved later.
*
* @param player the player to save
*/
public void setServer(ProxiedPlayer player);
/**
* Save all pending reconnect locations. Whilst not used for database
* connections, this method will be called at a predefined interval to allow

View File

@@ -20,7 +20,8 @@ public interface TabListHandler
public void onServerChange(ProxiedPlayer player);
/**
* Called when a players ping changes.
* Called when a players ping changes. The new ping will have not updated in
* the player instance until this method returns.
*
* @param player the player who's ping changed
* @param ping the player's new ping.