mirror of
https://github.com/PikaMug/Quests.git
synced 2025-01-03 06:57:58 +01:00
PhatLoots should be soft-depend
This commit is contained in:
parent
65a3031a8b
commit
02968a47e4
@ -2852,16 +2852,19 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getServer().getPluginManager().getPlugin("PhatLoots") != null) {
|
||||||
if (config.contains("quests." + questName + ".rewards.phat-loots")) {
|
if (config.contains("quests." + questName + ".rewards.phat-loots")) {
|
||||||
|
|
||||||
if (Quests.checkList(config.getList("quests." + questName + ".rewards.phat-loots"), String.class)) {
|
if (Quests.checkList(config.getList("quests." + questName + ".rewards.phat-loots"), String.class)) {
|
||||||
|
|
||||||
for (String loot : config.getStringList("quests." + questName + ".rewards.phat-loots")) {
|
for (String loot : config.getStringList("quests." + questName + ".rewards.phat-loots")) {
|
||||||
|
|
||||||
if (PhatLootsAPI.getPhatLoot(loot) == null) {
|
if (PhatLootsAPI.getPhatLoot(loot) == null) {
|
||||||
skipQuestProcess("" + loot + " in phat-loots: Reward in Quest " + quest.name + " is not a valid PhatLoot name!");
|
|
||||||
}
|
skipQuestProcess("" + loot + " in phat-loots: Reward in Quest " + quest.name + " is not a valid PhatLoot name!");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
quest.phatLootRewards.clear();
|
quest.phatLootRewards.clear();
|
||||||
@ -2871,7 +2874,8 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
|
|||||||
skipQuestProcess("phat-loots: Reward in Quest " + quest.name + " is not a list of PhatLoots!");
|
skipQuestProcess("phat-loots: Reward in Quest " + quest.name + " is not a list of PhatLoots!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (config.contains("quests." + questName + ".rewards.custom-rewards")) {
|
if (config.contains("quests." + questName + ".rewards.custom-rewards")) {
|
||||||
populateCustomRewards(config);
|
populateCustomRewards(config);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user