Correct issue with unspecified permission worlds, fixes #1284

This commit is contained in:
PikaMug 2020-05-04 23:24:31 -04:00
parent f52ddb71e1
commit 02171d54dd

View File

@ -499,7 +499,10 @@ public class Quest {
for (int i = 0; i < rews.getPermissions().size(); i++) {
if (plugin.getDependencies().getVaultPermission() != null) {
String perm = rews.getPermissions().get(i);
String world = rews.getPermissionWorlds().get(i);
String world = null;
if (i < rews.getPermissionWorlds().size()) {
world = rews.getPermissionWorlds().get(i);
}
if (world == null || world.equals("null")) {
plugin.getDependencies().getVaultPermission().playerAdd(null, player, perm);
} else {