From f993b128f79d56176838614ba9c471d4e8405004 Mon Sep 17 00:00:00 2001 From: fullwall Date: Mon, 16 Apr 2012 22:58:09 +0800 Subject: [PATCH] Use PluginProvider --- src/main/java/net/citizensnpcs/Citizens.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/citizensnpcs/Citizens.java b/src/main/java/net/citizensnpcs/Citizens.java index 8b53c39bc..566946a6e 100644 --- a/src/main/java/net/citizensnpcs/Citizens.java +++ b/src/main/java/net/citizensnpcs/Citizens.java @@ -12,6 +12,7 @@ import net.citizensnpcs.api.exception.NPCException; import net.citizensnpcs.api.exception.NPCLoadException; import net.citizensnpcs.api.npc.NPC; import net.citizensnpcs.api.scripting.EventRegistrar; +import net.citizensnpcs.api.scripting.PluginProvider; import net.citizensnpcs.api.scripting.ScriptCompiler; import net.citizensnpcs.api.util.DataKey; import net.citizensnpcs.api.util.DatabaseStorage; @@ -244,6 +245,7 @@ public class Citizens extends JavaPlugin { private void registerScriptHelpers() { ScriptCompiler compiler = CitizensAPI.getScriptCompiler(); compiler.registerGlobalContextProvider(new EventRegistrar(this)); + compiler.registerGlobalContextProvider(new PluginProvider(this)); } public void reload() throws NPCLoadException {