Example #1
0
  private void showLocation(Player player, BitzPlugin plugin) {

    Location loc = BitzData.getLocationSelection(player);
    if (loc == null) {

      return;
    }

    BlockUtils.showGhostBlock(loc.getBlock(), player, Material.WOOL, (byte) 11, 10, plugin);
  }
Example #2
0
  private void showRegion(Player player, BitzPlugin plugin) {

    PartialRegion partial = BitzData.getRegionSelection(player);
    if (!partial.isComplete()) {

      return;
    }

    Region region = partial.toRegion();

    BlockUtils.showGhostBlocks(
        RegionUtils.getFrame(region), player, Material.WOOL, (byte) 14, 10, plugin);
  }
Example #3
0
  private void showLocationList(Player player, BitzPlugin plugin) {

    List<Location> locs = BitzData.getLocationListSelection(player);
    if (locs.size() < 1) {

      return;
    }

    List<Block> blocks = new ArrayList<Block>();

    for (Location loc : locs) {

      blocks.add(loc.getBlock());
    }

    BlockUtils.showGhostBlocks(blocks, player, Material.WOOL, (byte) 5, 10, plugin);
  }