Package org.bukkit

Examples of org.bukkit.ChatColor


  {
    String bname = getMaterial().name().replaceAll("_+", " ");
    if ((getMaterial().getNewData((byte) 0) instanceof Colorable))
    {
      DyeColor color = DyeColor.getByWoolData(getData());
      ChatColor chatColor = ColorConverter.dyeToChat(color);

      String colorName = color.name().replaceAll("_+", " ");
      bname = chatColor + colorName + " " + bname + ChatColor.RESET;

    }
View Full Code Here


    if (match == null) return;

    AutoRefTeam speakerTeam = match.getPlayerTeam(speaker);
    if (speakerTeam != null)
    {
      ChatColor teamColor = speakerTeam.getColor();
      event.setFormat("<" + teamColor + "%s" + ChatColor.RESET + "> %s");
    }
    else event.setFormat("<%s> %s");
    modifyChatRecipients(match, speaker, event.getRecipients());
  }
View Full Code Here

 
  @Nullable
  private final static ChatColor getLastColor(final CharSequence s) {
    for (int i = s.length() - 2; i >= 0; i--) {
      if (s.charAt(i) == ChatColor.COLOR_CHAR) {
        final ChatColor c = ChatColor.getByChar(s.charAt(i + 1));
        if (c != null && (c.isColor() || c == ChatColor.RESET))
          return c;
      }
    }
    return null;
  }
View Full Code Here

                page = numpages;
            } else if (page < 1) {
                page = 1;
            }

            ChatColor g = ChatColor.GREEN, w = ChatColor.WHITE, r = ChatColor.RED;

            int start = 8 * (page - 1);
            sender.sendMessage(ChatColor.RED + "[==== " + ChatColor.GREEN + "Page " + page + " of " + numpages + ChatColor.RED + " ====]");
            for (int i = start; i < start + 8 && i < dump.size(); ++i) {
                PermissionAttachmentInfo info = dump.get(i);
View Full Code Here

TOP

Related Classes of org.bukkit.ChatColor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.