Exemplo n.º 1
0
  public static void list(CommandSender sender, int page, String worldOnly) {
    if (wakeups.isEmpty()) {
      p.msg(sender, p.languageReader.get("Player_WakeNoPoints"));
      return;
    }

    ArrayList<String> locs = new ArrayList<>();
    for (int id = 0; id < wakeups.size(); id++) {

      Wakeup wakeup = wakeups.get(id);

      String s = "&m";
      if (wakeup.active) {
        s = "";
      }

      String world = wakeup.loc.getWorld().getName();

      if (worldOnly == null || world.equalsIgnoreCase(worldOnly)) {
        int x = (int) wakeup.loc.getX();
        int y = (int) wakeup.loc.getY();
        int z = (int) wakeup.loc.getZ();

        locs.add("&6" + s + id + "&f" + s + ": " + world + " " + x + "," + y + "," + z);
      }
    }
    p.list(sender, locs, page);
  }