Make #getPlayerGroups return global too

This commit is contained in:
Luck
2016-08-29 21:35:11 +01:00
Unverified
parent 3c83c578eb
commit 659baaf5fb
2 changed files with 2 additions and 2 deletions
@@ -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()