@Override protected void execute(final Event e) { for (final String message : messages.getArray(e)) { // message = StringUtils.fixCapitalization(message); for (final CommandSender s : recipients.getArray(e)) { s.sendMessage(message); } } }
@Override public String toString(final @Nullable Event e, final boolean debug) { return players.toString(e, debug) + " " + (players.isSingle() ? "is" : "are") + (isNegated() ? " not" : "") + " " + (owner ? "owner" : "member") + (players.isSingle() ? "" : "s") + " of " + regions.toString(e, debug); }
@Override public boolean check(final Event e) { return players.check( e, new Checker<OfflinePlayer>() { @Override public boolean check(final OfflinePlayer p) { return regions.check( e, new Checker<Region>() { @Override public boolean check(final Region r) { return owner ? r.isOwner(p) : r.isMember(p); } }, isNegated()); } }); }
@Override public String toString(final @Nullable Event e, final boolean debug) { return "send " + messages.toString(e, debug) + " to " + recipients.toString(e, debug); }