Examples of ChatColor


Examples of org.bukkit.ChatColor

            if (p != null && (!this.plugin.getMVPerms().canEnterWorld(p, world))) {
                continue;
            }

            ChatColor color = ChatColor.GOLD;
            Environment env = world.getEnvironment();
            if (env == Environment.NETHER) {
                color = ChatColor.RED;
            } else if (env == Environment.NORMAL) {
                color = ChatColor.GREEN;
View Full Code Here

Examples of org.bukkit.ChatColor

            worldStrings.add(world.getName());
        }
        for (String world : this.worldManager.getUnloadedWorlds()) {
            worldStrings.add(world);
        }
        ChatColor currColor = ChatColor.WHITE;
        for (File file : files) {
            if (file.isDirectory() && checkIfIsWorld(file) && !worldStrings.contains(file.getName())) {
                worldList += currColor + file.getName() + " ";
                if (currColor == ChatColor.WHITE) {
                    currColor = ChatColor.YELLOW;
View Full Code Here

Examples of org.bukkit.ChatColor

            sender.sendMessage(ChatColor.RED + "Valid values for option " + option + " are: true and false");
          }
        } else {
          String value = args[4].toLowerCase();
          if (option.equals("color")) {
            ChatColor color = TEAMS_OPTION_COLOR.get(value);
            if (color == null) {
              sender.sendMessage(ChatColor.RED + "Valid values for option color are: " + stringCollectionToString(TEAMS_OPTION_COLOR.keySet()));
              return false;
            }
            team.setPrefix(color.toString());
            team.setSuffix(ChatColor.RESET.toString());
          } else {
            if (!value.equals("true") && !value.equals("false")) {
              sender.sendMessage(ChatColor.RED + "Valid values for option " + option + " are: true and false");
              return false;
View Full Code Here

Examples of org.bukkit.ChatColor

    Collections.sort(maps);

    sender.sendMessage(ChatColor.GOLD + String.format("Available Maps (%d):", maps.size()));
    for (AutoRefMap mapInfo : maps)
    {
      ChatColor color = mapInfo.isInstalled() ? ChatColor.WHITE : ChatColor.DARK_GRAY;
      sender.sendMessage("* " + color + mapInfo.getVersionString());
    }

    return true;
  }
View Full Code Here

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

Examples of org.bukkit.ChatColor

    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

Examples of org.bukkit.ChatColor

 
  @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

Examples of org.bukkit.ChatColor

                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

Examples of org.spoutcraft.api.ChatColor

    setTooltip("Sets how far the overview-map scans the map when you move.\nHigher values will mean increased lag when you move");
  }

  public String getText() {
    int radius = (int) (this.getSliderPosition() * (MAX_RADIUS - MIN_RADIUS) + MIN_RADIUS);
    ChatColor color = ChatColor.WHITE;
    if (radius > 3) {
      color = ChatColor.YELLOW;
    }
    if (radius > 4) {
      color = ChatColor.GOLD;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.