Skip to content

Commit

Permalink
Allow 'Run' command to allow different script paths. See: http://past…
Browse files Browse the repository at this point in the history
…ebin.com/cKfMfPgY (This script is bundled with Denizen 0.9)
  • Loading branch information
aufdemrand committed Jul 11, 2013
1 parent 29758f1 commit 0ec76cd
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -113,15 +113,15 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
entries = script.getContainer().getEntries(
scriptEntry.getPlayer(),
scriptEntry.getNPC(),
(String) scriptEntry.getObject("path"));
scriptEntry.getElement("path").asString());
// Else, assume standard path
else entries = script.getContainer().getBaseEntries(
scriptEntry.getPlayer(),
scriptEntry.getNPC());

// Get the 'id' if specified
String id = (scriptEntry.hasObject("id") ?
((Element) scriptEntry.getObject("id")).asString() : ScriptQueue._getNextId());
(scriptEntry.getElement("id")).asString() : ScriptQueue._getNextId());

// Build the queue
ScriptQueue queue;
Expand Down

0 comments on commit 0ec76cd

Please sign in to comment.