mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-29 22:23:59 +01:00
Changes
This commit is contained in:
parent
4e5ecff66a
commit
2cab36d2e0
@ -240,7 +240,7 @@ public class Citizens extends JavaPlugin {
|
|||||||
private void registerScriptHelpers() {
|
private void registerScriptHelpers() {
|
||||||
ScriptCompiler compiler = CitizensAPI.getScriptCompiler();
|
ScriptCompiler compiler = CitizensAPI.getScriptCompiler();
|
||||||
compiler.registerGlobalContextProvider(new EventRegistrar(this));
|
compiler.registerGlobalContextProvider(new EventRegistrar(this));
|
||||||
compiler.makeJARAvailable(new File("plugins"));
|
compiler.addToClasspath(new File("plugins"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reload() throws NPCLoadException {
|
public void reload() throws NPCLoadException {
|
||||||
@ -255,8 +255,7 @@ public class Citizens extends JavaPlugin {
|
|||||||
public void save() {
|
public void save() {
|
||||||
for (NPC npc : npcManager)
|
for (NPC npc : npcManager)
|
||||||
((CitizensNPC) npc).save(saves.getKey("npc." + npc.getId()));
|
((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();
|
saves.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ public class Settings {
|
|||||||
setting.set(root.getRaw(setting.path));
|
setting.set(root.getRaw(setting.path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
config.save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
|
Loading…
Reference in New Issue
Block a user