Go to release

This commit is contained in:
Michel Roux 2012-05-12 11:04:07 +02:00
parent 5ca1488c81
commit 30617cab6d
3 changed files with 8 additions and 14 deletions

View File

@ -6,8 +6,8 @@ import java.util.List;
import org.bukkit.entity.Player;
/**
* A class representing a permissions group.
*/
* A class representing a permissions group.
*/
public class Group {
private PermissionsPlugin plugin;

View File

@ -84,8 +84,7 @@ public class PermissionInfo {
* Gets a map of world-specific permission nodes to boolean values that this
* group/player defines.
*
* @param world
* The name of the world.
* @param world The name of the world.
* @return The map of permissions.
*/
public Map<String, Boolean> getWorldPermissions(String world) {

View File

@ -19,8 +19,7 @@ public class PermissionsPlugin extends JavaPlugin {
// -- Basic stuff
@Override
public void onEnable() {
api = ((SimplyPlugin) getServer().getPluginManager().getPlugin(
"SimplyPerms")).getAPI();
api = ((SimplyPlugin) getServer().getPluginManager().getPlugin("SimplyPerms")).getAPI();
// How are you gentlemen
getLogger().info("SimplyWrapper successfully enabled !");
@ -33,16 +32,14 @@ public class PermissionsPlugin extends JavaPlugin {
}
public FileConfiguration getConfig() {
return getServer().getPluginManager().getPlugin("SimplyPerms")
.getConfig();
return getServer().getPluginManager().getPlugin("SimplyPerms").getConfig();
}
// -- External API
/**
* Get the group with the given name.
*
* @param groupName
* The name of the group.
* @param groupName The name of the group.
* @return A Group if it exists or null otherwise.
*/
public Group getGroup(String groupName) {
@ -55,8 +52,7 @@ public class PermissionsPlugin extends JavaPlugin {
/**
* Returns a list of groups a player is in.
*
* @param playerName
* The name of the player.
* @param playerName The name of the player.
* @return The groups this player is in. May be empty.
*/
public List<Group> getGroups(String playerName) {
@ -74,8 +70,7 @@ public class PermissionsPlugin extends JavaPlugin {
/**
* Returns permission info on the given player.
*
* @param playerName
* The name of the player.
* @param playerName The name of the player.
* @return A PermissionsInfo about this player.
*/
public PermissionInfo getPlayerInfo(String playerName) {