mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-26 19:43:03 +00:00
Make #getPlayerGroups return global too
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -195,7 +195,7 @@ public class VaultPermissionHook extends Permission {
|
||||
public String[] getPlayerGroups(String world, @NonNull String player) {
|
||||
final User user = plugin.getUserManager().get(player);
|
||||
return (user == null) ? new String[0] :
|
||||
world != null && !world.equals("") ? user.getLocalGroups("global", world).toArray(new String[0]) :
|
||||
world != null && !world.equals("") ? user.getGroups("global", world, true).toArray(new String[0]) :
|
||||
user.getGroupNames().toArray(new String[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user