mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-27 13:15:55 +01:00
Fix quest completion on missing or invalid permission worlds
This commit is contained in:
parent
b63d7be408
commit
b4d11ff9c3
@ -721,7 +721,7 @@ public class Quest {
|
||||
if (rews.getPermissions().isEmpty() == false) {
|
||||
int index = 0;
|
||||
for (String s : rews.getPermissions()) {
|
||||
if (rews.getPermissionWorlds() != null) {
|
||||
if (rews.getPermissionWorlds() != null && rews.getPermissionWorlds().size() > index) {
|
||||
p.sendMessage("- " + ChatColor.DARK_GREEN + s + " (" + rews.getPermissionWorlds().get(index)
|
||||
+ ")");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user