Examples of green()


Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

            minecartCount++;
          }
        }
      }
      MessageBuilder builder = new MessageBuilder();
      builder.green("There are ").yellow(count).green(" trains on this server (of which ");
      builder.yellow(moving).green(" are moving)");
      builder.newLine().green("There are ").yellow(minecartCount).green(" minecart entities");
      builder.send(sender);
      // Show additional information about owned trains to players
      if (sender instanceof Player) {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

          continue;
        }
      }
      found = true;
      if (prop.isLoaded()) {
        builder.green(prop.getTrainName());
      } else {
        builder.red(prop.getTrainName());
      }
    }
    if (found) {
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

          if (route.length == 0) {
            msg.red(first.getDisplayName() + " /=/ " + last.getDisplayName() + " (not found)");
          } else {
            msg.setSeparator(ChatColor.YELLOW, " -> ");
            for (PathNode node : route) {
              msg.green(node.getDisplayName());
            }
          }
        }       
      }
    }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

    } else {
      showInv();
      MessageBuilder modes = new MessageBuilder();
      modes.yellow("Available environments: ").setIndent(2).setSeparator(ChatColor.YELLOW, " / ");
      for (WorldMode mode : WorldMode.values()) {
        modes.green(mode.getName());
      }
      modes.send(sender);
    }
  }
 
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

      builder.newLine().green("[Loaded/Online] ").red("[Unloaded/Offline] ").dark_red("[Broken/Dead]");
      builder.newLine().yellow("Available worlds: ");
      builder.setSeparator(ChatColor.WHITE, " / ").setIndent(2).newLine();
      for (String world : WorldUtil.getLoadableWorlds()) {
        if (WorldManager.isLoaded(world)) {
          builder.green(world);
        } else if (WorldConfigStore.get(world).isBroken()) {
          builder.dark_red(world);
        } else {
          builder.red(world);
        }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

  public void execute() {
    MessageBuilder builder = new MessageBuilder();
    builder.yellow("Available chunk generators:").newLine();
    builder.setIndent(2).setSeparator(ChatColor.WHITE, " / ");
    for (String plugin : WorldManager.getGeneratorPlugins()) {
      builder.green(plugin);
    }
    builder.send(sender);
  }
}
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

    }
  }

  public void sendWorldsMessage(Collection<String> worlds, String text) {
    MessageBuilder builder = new MessageBuilder();
    builder.green("Worlds ").setSeparator(ChatColor.WHITE, "/");
    for (String world : worlds) {
      builder.yellow(world);
    }
    builder.setSeparator(null).green(" " + text);
    builder.send(this.sender);
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

    }
  }

  public void listPortals(String[] portals) {
    MessageBuilder builder = new MessageBuilder();
    builder.green("[Very near] ").dark_green("[Near] ").yellow("[Far] ");
    builder.red("[Other world] ").dark_red("[Unavailable]").newLine();
    builder.yellow("Available portals: ").white(portals.length, " Portal");
    if (portals.length != 1) builder.append('s');
    if (portals.length > 0) {
      builder.setIndent(2).setSeparator(ChatColor.WHITE, " / ").newLine();
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

        Location loc = Portal.getPortalLocation(portal, null);
        if (loc != null && ploc != null) {
          if (ploc.getWorld() == loc.getWorld()) {
            double d = ploc.distance(loc);
            if (d <= 10) {
              builder.green(portal);
            } else if (d <= 100) {
              builder.dark_green(portal);
            } else {
              builder.yellow(portal);
            }
View Full Code Here

Examples of com.bergerkiller.bukkit.common.MessageBuilder.green()

      }
      // Display denied Mobs
      SpawnControl sc = WorldConfig.get(worldname).spawnControl;
      MessageBuilder message = new MessageBuilder();
      if (sc.deniedCreatures.isEmpty()) {
        message.green("All mobs are allowed to spawn right now.");
      } else {
        message.green("The following mobs are denied from spawning:").newLine();
        message.setIndent(2).setSeparator(ChatColor.WHITE, " / ");
        for (EntityType type : sc.deniedCreatures) {
          message.append(ChatColor.RED, EntityUtil.getName(type));
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.