From d62841de3ee40af74df949d0a3d457aa3a2a9553 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 22 Feb 2015 18:30:39 +1100 Subject: [PATCH] RGAR --- .../intellectualcrafters/plot/commands/Rate.java | 1 - .../plot/commands/RegenAllRoads.java | 14 +++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Rate.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Rate.java index 2998aa84b..dfe8c9652 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Rate.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Rate.java @@ -28,7 +28,6 @@ import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.util.MainUtil; import com.intellectualcrafters.plot.util.bukkit.UUIDHandler; -@SuppressWarnings({ "unused", "deprecated", "javadoc" }) public class Rate extends SubCommand { /* * String cmd, String permission, String description, String usage, String diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/RegenAllRoads.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/RegenAllRoads.java index f482ab200..d8d27b0d8 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/RegenAllRoads.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/RegenAllRoads.java @@ -20,18 +20,16 @@ //////////////////////////////////////////////////////////////////////////////////////////////////// package com.intellectualcrafters.plot.commands; -import java.util.ArrayList; - -import org.bukkit.Bukkit; -import org.bukkit.World; +import java.util.List; import com.intellectualcrafters.plot.PlotSquared; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.generator.HybridPlotManager; +import com.intellectualcrafters.plot.generator.HybridUtils; import com.intellectualcrafters.plot.object.ChunkLoc; import com.intellectualcrafters.plot.object.PlotManager; import com.intellectualcrafters.plot.object.PlotPlayer; -import com.intellectualcrafters.plot.util.bukkit.ChunkManager; +import com.intellectualcrafters.plot.util.AChunkManager; public class RegenAllRoads extends SubCommand { public RegenAllRoads() { @@ -54,14 +52,12 @@ public class RegenAllRoads extends SubCommand { sendMessage(player, C.NOT_VALID_PLOT_WORLD); return false; } - final HybridPlotManager hpm = (HybridPlotManager) manager; - final World world = Bukkit.getWorld(name); - final ArrayList chunks = ChunkManager.getChunkChunks(world); + final List chunks = AChunkManager.manager.getChunkChunks(name); PlotSquared.log("&cIf no schematic is set, the following will not do anything"); PlotSquared.log("&7 - To set a schematic, stand in a plot and use &c/plot createroadschematic"); PlotSquared.log("&6Potential chunks to update: &7" + (chunks.size() * 1024)); PlotSquared.log("&6Estimated time: &7" + (chunks.size()) + " seconds"); - final boolean result = hpm.scheduleRoadUpdate(world); + final boolean result = HybridUtils.manager.scheduleRoadUpdate(name); if (!result) { PlotSquared.log("&cCannot schedule mass schematic update! (Is one already in progress?)"); return false;