mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-13 14:48:34 +00:00
More work on getting commands to compile
This commit is contained in:
@ -70,7 +70,7 @@ public class CommandScriptLoader {
|
||||
BrushCommands processor = new BrushCommands(WorldEdit.getInstance());
|
||||
for (FunctionParametricCallable cmd : cmds) {
|
||||
ProcessedCallable processed = new ProcessedCallable(cmd, processor);
|
||||
PlatformCommandManager.getInstance().registerCommand(aliases, cmd.getCommand(), processed);
|
||||
PlatformCommandManager.getInstance().registration.register(aliases, cmd.getCommand(), processed);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
@ -49,7 +49,6 @@ public class NashornCraftScriptEngine implements CraftScriptEngine {
|
||||
synchronized (NashornCraftScriptEngine.class) {
|
||||
if (FACTORY == null) FACTORY = new NashornScriptEngineFactory();
|
||||
}
|
||||
;
|
||||
ScriptEngine engine = FACTORY.getScriptEngine("--language=es6");
|
||||
SimpleBindings bindings = new SimpleBindings();
|
||||
|
||||
|
@ -47,7 +47,7 @@ public class RhinoCraftScriptEngine implements CraftScriptEngine {
|
||||
|
||||
@Override
|
||||
public Object evaluate(String script, String filename, Map<String, Object> args)
|
||||
throws ScriptException, Throwable {
|
||||
throws Throwable {
|
||||
RhinoContextFactory factory = new RhinoContextFactory(timeLimit);
|
||||
Context cx = factory.enterContext();
|
||||
ScriptableObject scriptable = new ImporterTopLevel(cx);
|
||||
|
Reference in New Issue
Block a user