mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Correct issue with unspecified permission worlds, fixes #1284
This commit is contained in:
parent
f52ddb71e1
commit
02171d54dd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user