Fixes permission limits with multiple permissions

https://github.com/BentoBoxWorld/addon-limits/issues/21
This commit is contained in:
tastybento 2019-06-14 18:14:57 -07:00
parent 9eec32f467
commit 539f7d604f
1 changed files with 1 additions and 1 deletions

View File

@ -37,8 +37,8 @@ public class JoinListener implements Listener {
private void checkPerms(Player player, String permissionPrefix, String islandId, String gameMode) {
IslandBlockCount ibc = addon.getBlockLimitListener().getIsland(islandId);
int limit = -1;
for (PermissionAttachmentInfo perms : player.getEffectivePermissions()) {
int limit = -1;
if (perms.getPermission().startsWith(permissionPrefix)) {
// Get the Material
String[] split = perms.getPermission().split("\\.");