Example #1
0
 /**
  * Sends this message to a command sender. If the sender is a player, they will receive the
  * fully-fledged formatted display of this message. Otherwise, they will receive a version of this
  * message with less formatting.
  *
  * @param sender The command sender who will receive the message.
  * @see #toOldMessageFormat()
  */
 public void send(CommandSender sender) {
   send(sender, toJSONString());
 }
Example #2
0
 /**
  * Sends this message to multiple command senders.
  *
  * @param senders The command senders who will receive the message.
  * @see #send(CommandSender)
  */
 public void send(final Iterable<? extends CommandSender> senders) {
   String string = toJSONString();
   for (final CommandSender sender : senders) {
     send(sender, string);
   }
 }
Example #3
0
 /**
  * Sends this message to a player. The player will receive the fully-fledged formatted display of
  * this message.
  *
  * @param player The player who will receive the message.
  */
 public void send(Player player) {
   send(player, toJSONString());
 }