Skip to content

Commit

Permalink
command files cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 11, 2020
1 parent 6b1fe0d commit 6c2c623
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Expand Up @@ -85,8 +85,8 @@ public void execute(ScriptEntry scriptEntry) {

Deprecations.eventCommand.warn(scriptEntry);

ListTag events = (ListTag) scriptEntry.getObject("events");
ListTag context = (ListTag) scriptEntry.getObject("context");
ListTag events = scriptEntry.getObjectTag("events");
ListTag context = scriptEntry.getObjectTag("context");

if (scriptEntry.dbCallShouldDebug()) {
Debug.report(scriptEntry, getName(), events.debug() + context.debug());
Expand Down
Expand Up @@ -113,7 +113,7 @@ public void execute(ScriptEntry scriptEntry) {
ElementTag stop = scriptEntry.getElement("stop");
ElementTag next = scriptEntry.getElement("next");
ElementTag callback = scriptEntry.getElement("callback");
ListTag list = (ListTag) scriptEntry.getObject("list");
ListTag list = scriptEntry.getObjectTag("list");
ElementTag as_name = scriptEntry.getElement("as_name");

if (stop != null && stop.asBoolean()) {
Expand Down
Expand Up @@ -117,9 +117,9 @@ else if ((arg.matchesArgumentType(QueueTag.class)
@Override
public void execute(ScriptEntry scriptEntry) {

QueueTag queue = (QueueTag) scriptEntry.getObject("queue");
QueueTag queue = scriptEntry.getObjectTag("queue");
Action action = (Action) scriptEntry.getObject("action");
DurationTag delay = (DurationTag) scriptEntry.getObject("delay");
DurationTag delay = scriptEntry.getObjectTag("delay");

if (scriptEntry.dbCallShouldDebug()) {
Debug.report(scriptEntry, getName(), queue.debug()
Expand Down
Expand Up @@ -62,8 +62,8 @@ else if (arg.matchesArgumentType(QueueTag.class)
@Override
public void execute(ScriptEntry scriptEntry) {

QueueTag queue = (QueueTag) scriptEntry.getObject("queue");
DurationTag delay = (DurationTag) scriptEntry.getObject("delay");
QueueTag queue = scriptEntry.getObjectTag("queue");
DurationTag delay = scriptEntry.getObjectTag("delay");

if (scriptEntry.dbCallShouldDebug()) {
Debug.report(scriptEntry, getName(),
Expand Down

0 comments on commit 6c2c623

Please sign in to comment.