Make #getPlayerGroups return global too

This commit is contained in:
Luck committed 2016-08-29 21:35:11 +01:00
1 parent 3c83c578eb
commit 659baaf5fb
2 files changed
+2 -2

No files matched your search

@@ -325,7 +325,7 @@ public abstract class User extends PermissionHolder implements Identifiable<UUID
* @param includeGlobal Whether to include global groups
* @return a {@link List} of group names
*/
private List<String> getGroups(String server, String world, boolean includeGlobal) {
public List<String> getGroups(String server, String world, boolean includeGlobal) {
// Call super #getPermissions method, and just sort through those
Map<String, Boolean> perms = exportNodes(server, world, null, includeGlobal, true, null);
return perms.keySet().stream()