Package com.bergerkiller.bukkit.common

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


        }
      }
      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) {
        StringBuilder statement = new StringBuilder();
        for (int i = 1; i < args.length; i++) {
View Full Code Here


  }

  public static void list(Player player, String statement) {
    MessageBuilder builder = new MessageBuilder();
    builder.yellow("You are the proud owner of the following trains:");
    builder.newLine().setSeparator(ChatColor.WHITE, " / ");
    boolean found = false;
    for (TrainProperties prop : TrainProperties.getAll()) {
      if (!prop.hasOwnership(player)) {
        continue;
      }
View Full Code Here

  public static void info(Player p, TrainProperties prop) {
    MessageBuilder message = new MessageBuilder();

    if (!prop.isOwner(p)) {
      if (!prop.hasOwners()) {
        message.newLine().yellow("Note: This train is not owned, claim it using /train claim!");
      }
    }
    message.newLine().yellow("Train name: ").white(prop.getTrainName());
    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
View Full Code Here

    if (!prop.isOwner(p)) {
      if (!prop.hasOwners()) {
        message.newLine().yellow("Note: This train is not owned, claim it using /train claim!");
      }
    }
    message.newLine().yellow("Train name: ").white(prop.getTrainName());
    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
    message.newLine().yellow("Can collide: ").white(prop.getColliding());

    // Collision states
View Full Code Here

      if (!prop.hasOwners()) {
        message.newLine().yellow("Note: This train is not owned, claim it using /train claim!");
      }
    }
    message.newLine().yellow("Train name: ").white(prop.getTrainName());
    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
    message.newLine().yellow("Can collide: ").white(prop.getColliding());

    // Collision states
    message.newLine().yellow("When colliding this train ");
View Full Code Here

        message.newLine().yellow("Note: This train is not owned, claim it using /train claim!");
      }
    }
    message.newLine().yellow("Train name: ").white(prop.getTrainName());
    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
    message.newLine().yellow("Can collide: ").white(prop.getColliding());

    // Collision states
    message.newLine().yellow("When colliding this train ");
    message.red(prop.mobCollision.getOperationName()).yellow(" mobs, ");
View Full Code Here

      }
    }
    message.newLine().yellow("Train name: ").white(prop.getTrainName());
    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
    message.newLine().yellow("Can collide: ").white(prop.getColliding());

    // Collision states
    message.newLine().yellow("When colliding this train ");
    message.red(prop.mobCollision.getOperationName()).yellow(" mobs, ");
    message.red(prop.playerCollision.getOperationName()).yellow(" players, ");
View Full Code Here

    message.newLine().yellow("Keep nearby chunks loaded: ").white(prop.isKeepingChunksLoaded());
    message.newLine().yellow("Slow down over time: ").white(prop.isSlowingDown());
    message.newLine().yellow("Can collide: ").white(prop.getColliding());

    // Collision states
    message.newLine().yellow("When colliding this train ");
    message.red(prop.mobCollision.getOperationName()).yellow(" mobs, ");
    message.red(prop.playerCollision.getOperationName()).yellow(" players, ");
    message.red(prop.miscCollision.getOperationName()).yellow(" misc entities and ");
    message.red(prop.trainCollision.getOperationName()).yellow(" other trains");
View Full Code Here

    message.red(prop.mobCollision.getOperationName()).yellow(" mobs, ");
    message.red(prop.playerCollision.getOperationName()).yellow(" players, ");
    message.red(prop.miscCollision.getOperationName()).yellow(" misc entities and ");
    message.red(prop.trainCollision.getOperationName()).yellow(" other trains");

    message.newLine().yellow("Maximum speed: ").white(prop.getSpeedLimit(), " blocks/tick");

    // Remaining common info
    Commands.info(message, prop);

    // Loaded message
View Full Code Here

    // Remaining common info
    Commands.info(message, prop);

    // Loaded message
    if (prop.getHolder() == null) {
      message.newLine().red("This train is unloaded! To keep it loaded, use:");
      message.newLine().yellow("   /train keepchunksloaded true");
    }

    // Send
    message.send(p);
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.