Go to release
This commit is contained in:
parent
5ca1488c81
commit
30617cab6d
@ -6,8 +6,8 @@ import java.util.List;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class representing a permissions group.
|
* A class representing a permissions group.
|
||||||
*/
|
*/
|
||||||
public class Group {
|
public class Group {
|
||||||
|
|
||||||
private PermissionsPlugin plugin;
|
private PermissionsPlugin plugin;
|
||||||
|
@ -84,8 +84,7 @@ public class PermissionInfo {
|
|||||||
* Gets a map of world-specific permission nodes to boolean values that this
|
* Gets a map of world-specific permission nodes to boolean values that this
|
||||||
* group/player defines.
|
* group/player defines.
|
||||||
*
|
*
|
||||||
* @param world
|
* @param world The name of the world.
|
||||||
* The name of the world.
|
|
||||||
* @return The map of permissions.
|
* @return The map of permissions.
|
||||||
*/
|
*/
|
||||||
public Map<String, Boolean> getWorldPermissions(String world) {
|
public Map<String, Boolean> getWorldPermissions(String world) {
|
||||||
|
@ -19,8 +19,7 @@ public class PermissionsPlugin extends JavaPlugin {
|
|||||||
// -- Basic stuff
|
// -- Basic stuff
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
api = ((SimplyPlugin) getServer().getPluginManager().getPlugin(
|
api = ((SimplyPlugin) getServer().getPluginManager().getPlugin("SimplyPerms")).getAPI();
|
||||||
"SimplyPerms")).getAPI();
|
|
||||||
|
|
||||||
// How are you gentlemen
|
// How are you gentlemen
|
||||||
getLogger().info("SimplyWrapper successfully enabled !");
|
getLogger().info("SimplyWrapper successfully enabled !");
|
||||||
@ -33,16 +32,14 @@ public class PermissionsPlugin extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public FileConfiguration getConfig() {
|
public FileConfiguration getConfig() {
|
||||||
return getServer().getPluginManager().getPlugin("SimplyPerms")
|
return getServer().getPluginManager().getPlugin("SimplyPerms").getConfig();
|
||||||
.getConfig();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- External API
|
// -- External API
|
||||||
/**
|
/**
|
||||||
* Get the group with the given name.
|
* Get the group with the given name.
|
||||||
*
|
*
|
||||||
* @param groupName
|
* @param groupName The name of the group.
|
||||||
* The name of the group.
|
|
||||||
* @return A Group if it exists or null otherwise.
|
* @return A Group if it exists or null otherwise.
|
||||||
*/
|
*/
|
||||||
public Group getGroup(String groupName) {
|
public Group getGroup(String groupName) {
|
||||||
@ -55,8 +52,7 @@ public class PermissionsPlugin extends JavaPlugin {
|
|||||||
/**
|
/**
|
||||||
* Returns a list of groups a player is in.
|
* Returns a list of groups a player is in.
|
||||||
*
|
*
|
||||||
* @param playerName
|
* @param playerName The name of the player.
|
||||||
* The name of the player.
|
|
||||||
* @return The groups this player is in. May be empty.
|
* @return The groups this player is in. May be empty.
|
||||||
*/
|
*/
|
||||||
public List<Group> getGroups(String playerName) {
|
public List<Group> getGroups(String playerName) {
|
||||||
@ -74,8 +70,7 @@ public class PermissionsPlugin extends JavaPlugin {
|
|||||||
/**
|
/**
|
||||||
* Returns permission info on the given player.
|
* Returns permission info on the given player.
|
||||||
*
|
*
|
||||||
* @param playerName
|
* @param playerName The name of the player.
|
||||||
* The name of the player.
|
|
||||||
* @return A PermissionsInfo about this player.
|
* @return A PermissionsInfo about this player.
|
||||||
*/
|
*/
|
||||||
public PermissionInfo getPlayerInfo(String playerName) {
|
public PermissionInfo getPlayerInfo(String playerName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user