This commit is contained in:
aPunch 2012-04-14 11:49:18 -05:00
parent 258130c7a0
commit a1de216c1a
2 changed files with 2 additions and 4 deletions

View File

@ -240,7 +240,7 @@ public class Citizens extends JavaPlugin {
private void registerScriptHelpers() {
ScriptCompiler compiler = CitizensAPI.getScriptCompiler();
compiler.registerGlobalContextProvider(new EventRegistrar(this));
compiler.makeJARAvailable(new File("plugins"));
compiler.addToClasspath(new File("plugins"));
}
public void reload() throws NPCLoadException {
@ -255,8 +255,7 @@ public class Citizens extends JavaPlugin {
public void save() {
for (NPC npc : npcManager)
((CitizensNPC) npc).save(saves.getKey("npc." + npc.getId()));
config.save(); // TODO: can we save the config at another place? this
// overwrites changes made when you reload.
saves.save();
}

View File

@ -25,7 +25,6 @@ public class Settings {
setting.set(root.getRaw(setting.path));
}
}
config.save();
}
public void save() {