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>
<artifactId>quests</artifactId>
<version>2.6.6</version>
<version>2.6.7</version>
<name>quests</name>
<url>https://github.com/FlyingPikachu/Quests/</url>
<packaging>jar</packaging>

View File

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

View File

@ -526,7 +526,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener,
}
public void loadConfig() {
FileConfiguration config = getConfig();
Lang.lang = config.getString("language", "en");
@ -2658,9 +2658,14 @@ try{
quests.clear();
events.clear();
questerBlacklist.clear();
loadQuests();
loadData();
loadEvents();
//Reload config from disc in-case a setting was changed
reloadConfig();
loadConfig();
Lang.clearPhrases();