mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 13:15:55 +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