mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 15:45:10 +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
@@ -153,6 +153,9 @@ public class DataScript implements IScriptHandler {
|
||||
engine.put("EntityType", entities);
|
||||
engine.put("RoleType", roles);
|
||||
engine.put("JobType", jobs);
|
||||
for (Map.Entry<String,Object> engineObjects : NpcAPI.engineObjects.entrySet()) {
|
||||
engine.put(engineObjects.getKey(),engineObjects.getValue());
|
||||
}
|
||||
script.run(engine);
|
||||
|
||||
if(clientNeedsUpdate){
|
||||
|
||||
Reference in new issue
Block a user