Minor cleanups

- Fix line length violations
- Add JavaDoc to some longer methods
- Remove unused imports
This commit is contained in:
ljacqu
2018-02-23 23:23:24 +01:00
parent 83e247afe9
commit 7864bb06ac
9 changed files with 21 additions and 6 deletions
@@ -258,6 +258,15 @@ public class PermissionsManager implements Reloadable {
return handler.hasPermissionOffline(player.getName(), permissionNode);
}
/**
* Check whether the offline player with the given name has permission for the given permission node.
* This method is used as a last resort when nothing besides the name is known.
*
* @param name The name of the player
* @param permissionNode The permission node to verify
*
* @return true if the player has permission, false otherwise
*/
public boolean hasPermissionOffline(String name, PermissionNode permissionNode) {
if (permissionNode == null) {
return true;