mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-16 06:12:52 -04:00
The IntentFactory can now be referenced in scripts without the need to import the class
This commit is contained in:
@@ -41,6 +41,10 @@ public class Scripts {
|
||||
private static final ScriptEngine ENGINE = new ScriptEngineManager().getEngineByName("nashorn");
|
||||
private static final Invocable INVOCABLE = (Invocable) ENGINE;
|
||||
|
||||
static {
|
||||
ENGINE.put("intentFactory", new IntentFactory());
|
||||
}
|
||||
|
||||
// Prevents instantiation.
|
||||
private Scripts() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user