Package com.palmergames.bukkit.towny.tasks

Examples of com.palmergames.bukkit.towny.tasks.TownClaim


       
        try {
          List<WorldCoord> selection = new ArrayList<WorldCoord>();
          selection.add(worldCoord);
          TownCommand.checkIfSelectionIsValid(town, selection, false, 0, false);
          new TownClaim(plugin, null, town, selection, true, false).start();
         
          //TownCommand.townClaim(town, worldCoord);
          //TownyUniverse.getDataSource().saveTown(town);
          //TownyUniverse.getDataSource().saveWorld(world);
         
View Full Code Here


            throw new TownyException(String.format(TownySettings.getLangString("msg_no_funds_claim"), selection.size(), cost + TownyEconomyObject.getEconomyCurrency()));
        } catch (EconomyException e1) {
          throw new TownyException("Economy Error");
        }

        new TownClaim(plugin, player, town, selection, true, false).start();

        //for (WorldCoord worldCoord : selection)
        //        townClaim(town, worldCoord);

        //TownyUniverse.getDataSource().saveTown(town);
View Full Code Here

                                                throw new TownyException(TownySettings.getLangString("msg_not_mayor_ass"));
                world = TownyUniverse.getDataSource().getWorld(player.getWorld().getName());
                               
                                List<WorldCoord> selection;
                                if (split.length == 1 && split[0].equalsIgnoreCase("all"))
                                  new TownClaim(plugin, player, town, null, false, false).start();
                                        //townUnclaimAll(town);
                                else {
                                        selection = TownyUtil.selectWorldCoordArea(town, new WorldCoord(world, Coord.parseCoord(plugin.getCache(player).getLastLocation())), split);
                                        selection = TownyUtil.filterOwnedBlocks(town, selection);
                                       
                                        // Set the area to unclaim
                                        new TownClaim(plugin, player, town, selection, false, false).start();
                                       
                                        //for (WorldCoord worldCoord : selection)
                                        //        townUnclaim(town, worldCoord, false);
       
                                        TownyMessaging.sendMsg(player, String.format(TownySettings.getLangString("msg_abandoned_area"), Arrays.toString(selection.toArray(new WorldCoord[0]))));
View Full Code Here

        world = TownyUniverse.getDataSource().getWorld(player.getWorld().getName());

        List<WorldCoord> selection;
        selection = TownyUtil.selectWorldCoordArea(null, new WorldCoord(world, Coord.parseCoord(player)), split);

        new TownClaim(plugin, player, null, selection, false, true).start();

      } catch (TownyException x) {
        TownyMessaging.sendErrorMsg(player, x.getMessage());
        return;
      }
View Full Code Here

TOP

Related Classes of com.palmergames.bukkit.towny.tasks.TownClaim

Copyright © 2018 www.massapicom. 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.