From 2cab36d2e0490a7b11fcd32aa8d2030038a801ff Mon Sep 17 00:00:00 2001 From: aPunch Date: Sat, 14 Apr 2012 11:49:18 -0500 Subject: [PATCH] Changes --- src/main/java/net/citizensnpcs/Citizens.java | 5 ++--- src/main/java/net/citizensnpcs/Settings.java | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/citizensnpcs/Citizens.java b/src/main/java/net/citizensnpcs/Citizens.java index c3eccff00..c1f8397ed 100644 --- a/src/main/java/net/citizensnpcs/Citizens.java +++ b/src/main/java/net/citizensnpcs/Citizens.java @@ -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(); } diff --git a/src/main/java/net/citizensnpcs/Settings.java b/src/main/java/net/citizensnpcs/Settings.java index be544fa74..1b8c412eb 100644 --- a/src/main/java/net/citizensnpcs/Settings.java +++ b/src/main/java/net/citizensnpcs/Settings.java @@ -25,7 +25,6 @@ public class Settings { setting.set(root.getRaw(setting.path)); } } - config.save(); } public void save() {