Fixes permission limits with multiple permissions
https://github.com/BentoBoxWorld/addon-limits/issues/21
This commit is contained in:
parent
9eec32f467
commit
539f7d604f
|
@ -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("\\.");
|
||||
|
|
Loading…
Reference in New Issue