mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-26 11:07:49 +01:00
Stop reverting config edits during /questadmin reload, fixes #364. Bump
version number
This commit is contained in:
parent
7ec954e652
commit
b4533024b3
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user