mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 00:14:51 +00:00
NpcAPI:
Added functions for adding keywords to global script running ++ addGlobalObject(String,Object) ++ removeGlobalObject(String) ++ getEngineObjects()
This commit is contained in:
1 parent
718a867411
commit
7a715ef308
4 files changed
+20
-1
No files matched your search
@@ -155,6 +155,9 @@ public class ScriptContainer {
|
||||
}
|
||||
|
||||
engine.put("API", NpcAPI.Instance());
|
||||
for (Map.Entry<String,Object> engineObjects : NpcAPI.engineObjects.entrySet()) {
|
||||
engine.put(engineObjects.getKey(),engineObjects.getValue());
|
||||
}
|
||||
|
||||
Current = this;
|
||||
CurrentType = type;
|
||||
|
||||
Reference in new issue
Block a user