Esempio n. 1
0
 @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);
     }
   }
 }
Esempio n. 2
0
 @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);
 }
Esempio n. 3
0
 @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());
         }
       });
 }
Esempio n. 4
0
 @Override
 public String toString(final @Nullable Event e, final boolean debug) {
   return "send " + messages.toString(e, debug) + " to " + recipients.toString(e, debug);
 }