Compile fix

This commit is contained in:
fullwall 2012-12-10 13:30:58 +08:00
parent f19e8181f1
commit 891e2fa96d

View File

@ -152,7 +152,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
Editor.leaveAll(); Editor.leaveAll();
CitizensAPI.shutdown(); CitizensAPI.shutdown();
tearDownScripting();
// Don't bother with this part if MC versions are not compatible // Don't bother with this part if MC versions are not compatible
if (compatible) { if (compatible) {
saves.storeAll(npcRegistry); saves.storeAll(npcRegistry);
@ -242,7 +241,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
} }
private void registerScriptHelpers() { private void registerScriptHelpers() {
setupScripting();
ScriptCompiler compiler = CitizensAPI.getScriptCompiler(); ScriptCompiler compiler = CitizensAPI.getScriptCompiler();
compiler.registerGlobalContextProvider(new EventRegistrar(this)); compiler.registerGlobalContextProvider(new EventRegistrar(this));
compiler.registerGlobalContextProvider(new ObjectProvider("plugin", this)); compiler.registerGlobalContextProvider(new ObjectProvider("plugin", this));