Skip to content

Commit

Permalink
Changed couldMatches logic to be startsWith instead of equals.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jul 4, 2015
1 parent d0e24e4 commit 94c5b9f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -46,7 +46,7 @@ public PlayerUsesPortalScriptEvent() {

@Override
public boolean couldMatch(ScriptContainer scriptContainer, String s) {
return CoreUtilities.toLowerCase(s).equals("player uses portal");
return CoreUtilities.toLowerCase(s).startsWith("player uses portal");
}

@Override
Expand Down

0 comments on commit 94c5b9f

Please sign in to comment.