Examples of ChatColor


Examples of com.gamingmesh.jobs.util.ChatColor

        List<JobInfo> jobInfo = job.getJobInfo(type);
        for (JobInfo info: jobInfo) {
            String materialName = info.getName().toLowerCase().replace('_', ' ');
           
            double income = info.getIncome(level, numjobs);
            ChatColor incomeColor = income >= 0 ? ChatColor.GREEN : ChatColor.DARK_RED;
           
            double xp = info.getExperience(level, numjobs);
            ChatColor xpColor = xp >= 0 ? ChatColor.YELLOW : ChatColor.GRAY;
            String xpString = String.format("%.2f xp", xp);
           
            message.append("  ");
           
            message.append(materialName);
            message.append(" -> ");
           
            message.append(xpColor.toString());
            message.append(xpString);
            message.append(' ');
           
            message.append(incomeColor.toString());
            message.append(Jobs.getEconomy().format(income));
View Full Code Here

Examples of com.gamingmesh.jobs.util.ChatColor

            titleSection = conf.createSection("Titles");
        }
        for (String titleKey : titleSection.getKeys(false)) {
            String titleName = conf.getString("Titles."+titleKey+".Name");
            String titleShortName = conf.getString("Titles."+titleKey+".ShortName");
            ChatColor titleColor = ChatColor.matchColor(conf.getString("Titles."+titleKey+".ChatColour", ""));
            int levelReq = conf.getInt("Titles."+titleKey+".levelReq", -1);
           
            if (titleName == null) {
                Jobs.getPluginLogger().severe("Title " + titleKey + " has an invalid Name property. Skipping!");
                continue;
View Full Code Here

Examples of com.gamingmesh.jobs.util.ChatColor

                continue;
            }
           
            String description = jobSection.getString("description", "");
           
            ChatColor color = ChatColor.WHITE;
            if (jobSection.contains("ChatColour")) {
                color = ChatColor.matchColor(jobSection.getString("ChatColour", ""));
                if (color == null) {
                    color = ChatColor.WHITE;
                    Jobs.getPluginLogger().warning("Job " + jobKey + " has an invalid ChatColour property.  Defaulting to WHITE!");
View Full Code Here

Examples of net.md_5.bungee.api.ChatColor

                c = message.charAt( i );
                if ( c >= 'A' && c <= 'Z' )
                {
                    c += 32;
                }
                ChatColor format = ChatColor.getByChar( c );
                if ( format == null )
                {
                    continue;
                }
                if ( builder.length() > 0 )
View Full Code Here

Examples of org.bukkit.ChatColor

      return "PARSE-ERROR";
    }
  }
 
  public String printConfig(Team team) {
    ChatColor teamColor = ChatColor.AQUA;
   
    ChatColor normalColor = ChatColor.WHITE;
   
    String teamConfigStr = "";
    InventoryBag invs = team.getInventories();
    teamConfigStr += getLoadoutsString(invs);
   
View Full Code Here

Examples of org.bukkit.ChatColor

      + ifEmptyInheritedForTeam(teamConfigStr);
  }

  private String getLoadoutsString(InventoryBag invs) {
    StringBuilder loadoutsString = new StringBuilder();
    ChatColor loadoutColor = ChatColor.GREEN;
    ChatColor normalColor = ChatColor.WHITE;
   
    if (invs.hasLoadouts()) {
      StringBuilder loadouts = new StringBuilder();
      for (Loadout ldt : invs.getNewLoadouts()) {
        if (ldt.requiresPermission()) {
View Full Code Here

Examples of org.bukkit.ChatColor

   
    return loadoutsString.toString();
  }

  public String printConfig(Warzone zone) {
    ChatColor teamColor = ChatColor.AQUA;
    ChatColor zoneColor = ChatColor.DARK_AQUA;
    ChatColor authorColor = ChatColor.GREEN;
    ChatColor normalColor = ChatColor.WHITE;
   
    String warzoneConfigStr = "";
    for (WarzoneConfig warzoneConfig : WarzoneConfig.values()) {
      Object value = zone.getWarzoneConfig().getValue(warzoneConfig);
      if (value != null) {
View Full Code Here

Examples of org.bukkit.ChatColor

    }
    return maybeEmpty;
  }

  public String printConfig() {
    ChatColor teamColor = ChatColor.AQUA;
    ChatColor zoneColor = ChatColor.DARK_AQUA;
    ChatColor globalColor = ChatColor.DARK_GREEN;
    ChatColor normalColor = ChatColor.WHITE;
   
    String warConfigStr = "";
    for (WarConfig warConfig : WarConfig.values()) {
      warConfigStr += " " + warConfig.toStringWithValue(this.getWarConfig().getValue(warConfig)).replace(":", ":" + globalColor) + normalColor;
    }
View Full Code Here

Examples of org.bukkit.ChatColor

      }
    }
    for (String name : fc.getKeys(false)) {
      ConfigurationSection cs = fc.getConfigurationSection(name);
      Material mat = Material.matchMaterial(cs.getString("Material"));
      ChatColor color = ChatColor.valueOf(cs.getString("Color")
          .toUpperCase());
      List<String> lore = cs.getStringList("Lore");
      ItemStack tool = new ItemStack(mat);
      List<String> list = new ArrayList<String>();
      for (String s : lore) {
View Full Code Here

Examples of org.bukkit.ChatColor

  private ChatColor[] setupColor(FileConfiguration fc) {
    List<String> colorStringList = fc.getStringList("Colors");
    ChatColor[] colorList = new ChatColor[colorStringList.size()];
    for (int i = 0; i < colorStringList.size(); i++) {
      String string = colorStringList.get(i);
      ChatColor cc = null;
      try {
        cc = ChatColor.valueOf(string.toUpperCase());
      } catch (Exception e) {
        continue;
      }
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.