Package com.palmergames.bukkit.towny.object

Examples of com.palmergames.bukkit.towny.object.PlotBlockData.initialize()


                  PlotBlockData plotChunk = TownyRegenAPI.getPlotChunk(townBlock);
                if (plotChunk != null) {
                  TownyRegenAPI.deletePlotChunk(plotChunk); // just claimed so stop regeneration.
                } else {
                  plotChunk = new PlotBlockData(townBlock); // Not regenerating so create a new snapshot.
                  plotChunk.initialize();
                }
                TownyRegenAPI.addPlotChunkSnapshot(plotChunk); // Save a snapshot.
                plotChunk = null;
                }
                TownyMessaging.sendDebugMsg("Creating new Town account: " + "town-"+name);
View Full Code Here


    // Take a snapshot of the next townBlock and save.
    if (TownyRegenAPI.hasWorldCoords()) {
      try {
        TownBlock townBlock = TownyRegenAPI.getWorldCoord().getTownBlock();
        PlotBlockData plotChunk = new PlotBlockData(townBlock);
          plotChunk.initialize(); // Create a new snapshot.

          if (!plotChunk.getBlockList().isEmpty() && !(plotChunk.getBlockList() == null))
            TownyRegenAPI.addPlotChunkSnapshot(plotChunk); // Save the snapshot.
       
          plotChunk = null;
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.