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

@@ -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]);
}