We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PermissionsHandler#getGroups(OfflinePlayer)
1 parent 5ed1d1e commit 18233d3Copy full SHA for 18233d3
Essentials/src/main/java/com/earth2me/essentials/perm/PermissionsHandler.java
@@ -52,7 +52,10 @@ public List<String> getGroups(final OfflinePlayer base) {
52
final long start = System.nanoTime();
53
final List<String> groups = new ArrayList<>();
54
groups.add(defaultGroup);
55
- groups.addAll(handler.getGroups(base));
+ final List<String> handlerGroups = handler.getGroups(base);
56
+ if (handlerGroups != null && !handlerGroups.isEmpty()) {
57
+ groups.addAll(handlerGroups);
58
+ }
59
checkPermLag(start, String.format("Getting groups for %s", base.getName()));
60
return Collections.unmodifiableList(groups);
61
}
0 commit comments