Skip to content

Commit

Permalink
Allow determinations in the Run command, fixes #1427
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed May 29, 2016
1 parent cd5416d commit 4381906
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -7,9 +7,11 @@
import net.aufdemrand.denizencore.exceptions.CommandExecutionException;
import net.aufdemrand.denizencore.exceptions.InvalidArgumentsException;
import net.aufdemrand.denizencore.objects.*;
import net.aufdemrand.denizencore.scripts.ScriptBuilder;
import net.aufdemrand.denizencore.scripts.ScriptEntry;
import net.aufdemrand.denizencore.scripts.commands.AbstractCommand;
import net.aufdemrand.denizencore.scripts.commands.Holdable;
import net.aufdemrand.denizencore.scripts.commands.core.DetermineCommand;
import net.aufdemrand.denizencore.scripts.queues.ScriptQueue;
import net.aufdemrand.denizencore.scripts.queues.core.InstantQueue;
import net.aufdemrand.denizencore.scripts.queues.core.TimedQueue;
Expand Down Expand Up @@ -247,6 +249,13 @@ public void run() {
});
}

// Allow determinations because why not
long reqId = DetermineCommand.getNewId();
queue.setReqId(reqId);

// Also add the reqId to each of the entries for reasons
ScriptBuilder.addObjectToEntries(entries, "ReqId", reqId);

// Save the queue for script referencing
scriptEntry.addObject("created_queue", queue);

Expand Down

0 comments on commit 4381906

Please sign in to comment.