Skip to content

Commit

Permalink
add raw_format determine to chat event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 27, 2018
1 parent 7cb2265 commit e07374b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public class ChatScriptEvent extends BukkitScriptEvent implements Listener {
// @Determine
// Element to change the message.
// "FORMAT:" + dScript to set the format script the message should use.
// "RAW_FORMAT:" + Element to set the format directly (without a format script).
// "RECIPIENTS:" + dList(dPlayer) to set the list of players that will receive the message.
//
// -->
Expand Down Expand Up @@ -124,6 +125,10 @@ public boolean applyDetermination(ScriptContainer container, String determinatio
format = new Element(formatstr);
}
}
else if (lower.startsWith("raw_format")) {
String form = determination.substring("raw_format".length());
format = new Element(form);
}
else if (lower.startsWith("recipients:")) {
String rec_new = determination.substring(11);
dList recs = dList.valueOf(rec_new);
Expand Down

0 comments on commit e07374b

Please sign in to comment.