Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Fix ClassCastException when using Vault "getPlayerGroups(String, Stri…
Browse files Browse the repository at this point in the history
…ng)"
  • Loading branch information
einrobin authored and GiantTreeLP committed Oct 19, 2019
1 parent 063f0bd commit f6d1819
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public boolean playerRemoveGroup(String world, String player, String group) {
@Override
public String[] getPlayerGroups(String world, String player) {
PermissionEntity permissionEntity = getPlayer(player).getPermissionEntity();
return (String[]) permissionEntity.getGroups().stream().map(GroupEntityData::getGroup).toArray();
return permissionEntity.getGroups().stream().map(GroupEntityData::getGroup).toArray(String[]::new);
}

@Override
Expand Down

0 comments on commit f6d1819

Please sign in to comment.