standard javadoc
This commit is contained in:
@@ -91,7 +91,7 @@ public class PermissionsManager {
|
||||
* Check if the permissions manager is currently hooked into any of the supported permissions systems.
|
||||
*
|
||||
d.
|
||||
* @return False if there isn't any permissions system used. */
|
||||
* @return False if there isn't any permissions system used. */
|
||||
public boolean isEnabled() {
|
||||
return !permsType.equals(PermissionsSystemType.NONE);
|
||||
}
|
||||
@@ -100,7 +100,7 @@ public class PermissionsManager {
|
||||
* Return the permissions system where the permissions manager is currently hooked into.
|
||||
*
|
||||
e.
|
||||
* @return Permissions system type. */
|
||||
* @return Permissions system type. */
|
||||
public PermissionsSystemType getUsedPermissionsSystemType() {
|
||||
return this.permsType;
|
||||
}
|
||||
@@ -109,7 +109,7 @@ public class PermissionsManager {
|
||||
* Setup and hook into the permissions systems.
|
||||
*
|
||||
m.
|
||||
* @return The detected permissions system. */
|
||||
* @return The detected permissions system. */
|
||||
public PermissionsSystemType setup() {
|
||||
// Define the plugin manager
|
||||
final PluginManager pm = this.server.getPluginManager();
|
||||
@@ -246,7 +246,7 @@ public class PermissionsManager {
|
||||
* Reload the permissions manager, and re-hook all permission plugins.
|
||||
*
|
||||
e.
|
||||
* @return True on success, false on failure. */
|
||||
* @return True on success, false on failure. */
|
||||
public boolean reload() {
|
||||
// Unhook all permission plugins
|
||||
unhook();
|
||||
@@ -300,7 +300,7 @@ public class PermissionsManager {
|
||||
* Get the logger instance.
|
||||
*
|
||||
e.
|
||||
* @return Logger instance. */
|
||||
* @return Logger instance. */
|
||||
public Logger getLogger() {
|
||||
return this.log;
|
||||
}
|
||||
@@ -321,7 +321,7 @@ public class PermissionsManager {
|
||||
* @param permsNode Permissions node.
|
||||
*
|
||||
n.
|
||||
* @return True if the player has permission. */
|
||||
* @return True if the player has permission. */
|
||||
public boolean hasPermission(Player player, String permsNode) {
|
||||
return hasPermission(player, permsNode, player.isOp());
|
||||
}
|
||||
@@ -334,7 +334,7 @@ public class PermissionsManager {
|
||||
* @param def Default returned if no permissions system is used.
|
||||
*
|
||||
n.
|
||||
* @return True if the player has permission. */
|
||||
* @return True if the player has permission. */
|
||||
public boolean hasPermission(Player player, String permsNode, boolean def) {
|
||||
if(!isEnabled())
|
||||
// No permissions system is used, return default
|
||||
@@ -389,8 +389,8 @@ public class PermissionsManager {
|
||||
/**
|
||||
* Method getGroups.
|
||||
* @param player Player
|
||||
* @return List<String>
|
||||
*/
|
||||
g>
|
||||
* @return List<String> */
|
||||
@SuppressWarnings({"unchecked", "rawtypes", "deprecation"})
|
||||
public List<String> getGroups(Player player) {
|
||||
if(!isEnabled())
|
||||
@@ -461,8 +461,8 @@ public class PermissionsManager {
|
||||
|
||||
/**
|
||||
* Method getName.
|
||||
* @return String
|
||||
*/
|
||||
ng
|
||||
* @return String */
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user