mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-04 18:00:00 +01:00
Changes
This commit is contained in:
parent
258130c7a0
commit
a1de216c1a
@ -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();
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,6 @@ public class Settings {
|
||||
setting.set(root.getRaw(setting.path));
|
||||
}
|
||||
}
|
||||
config.save();
|
||||
}
|
||||
|
||||
public void save() {
|
||||
|
Loading…
Reference in New Issue
Block a user