Skip to content

Commit

Permalink
temp fix to cooldown command npe
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeebiss committed Apr 29, 2013
1 parent 6577767 commit e2fcac7
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -109,11 +109,11 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
Type type = (Type) scriptEntry.getObject("type");

// Report to dB
dB.report(getName(),
aH.debugObj("Type", type.toString())
+ script.debug()
+ (type == Type.PLAYER ? aH.debugObj("Player", scriptEntry.getPlayer().getName()) : "")
+ duration.debug());
//dB.report(getName(),
// aH.debugObj("Type", type.toString())
// + script.debug()
// + (type == Type.PLAYER ? aH.debugObj("Player", scriptEntry.getPlayer().getName()) : "")
// + duration.debug());

// Perform cooldown
if (type == Type.PLAYER)
Expand Down

0 comments on commit e2fcac7

Please sign in to comment.