Skip to content

Commit

Permalink
Optimize event match
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jun 29, 2015
1 parent 8e57cf5 commit be42417
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -71,9 +71,9 @@ public EntityDeathScriptEvent() {

@Override
public boolean couldMatch(ScriptContainer scriptContainer, String s) {
String lower = CoreUtilities.toLowerCase(s);
return lower.contains("dies")
|| lower.contains("death");
String cmd = CoreUtilities.getXthArg(1, CoreUtilities.toLowerCase(s));
return cmd.equals("dies")
|| cmd.equals("death");
}

@Override
Expand Down

0 comments on commit be42417

Please sign in to comment.