Stop reverting config edits during /questadmin reload, fixes #364. Bump

version number
This commit is contained in:
HappyPikachu 2016-07-04 14:36:08 -04:00
parent 7ec954e652
commit b4533024b3
3 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<groupId>me.blackvein.quests</groupId> <groupId>me.blackvein.quests</groupId>
<artifactId>quests</artifactId> <artifactId>quests</artifactId>
<version>2.6.6</version> <version>2.6.7</version>
<name>quests</name> <name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url> <url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@ -1207,7 +1207,7 @@ public class Quester {
public void reachLocation(Quest quest, Location l) { public void reachLocation(Quest quest, Location l) {
for (Location location : getQuestData(quest).locationsReached) { for (Location location : getQuestData(quest).locationsReached) {
//debug try/catch for #352 //TODO debug try/catch for #352
try { try {
int index = getQuestData(quest).locationsReached.indexOf(location); int index = getQuestData(quest).locationsReached.indexOf(location);
Location locationToReach = getCurrentStage(quest).locationsToReach.get(index); Location locationToReach = getCurrentStage(quest).locationsToReach.get(index);

View File

@ -2658,9 +2658,14 @@ try{
quests.clear(); quests.clear();
events.clear(); events.clear();
questerBlacklist.clear();
loadQuests(); loadQuests();
loadData(); loadData();
loadEvents(); loadEvents();
//Reload config from disc in-case a setting was changed
reloadConfig();
loadConfig(); loadConfig();
Lang.clearPhrases(); Lang.clearPhrases();