This commit is contained in:
boy0001
2015-07-27 04:46:24 +10:00
parent e1c8dcc4be
commit 56970b85e8
6 changed files with 13 additions and 13 deletions

View File

@ -7,7 +7,7 @@ import org.bukkit.generator.ChunkGenerator;
import com.intellectualcrafters.plot.config.C;
import com.intellectualcrafters.plot.generator.HybridUtils;
import com.intellectualcrafters.plot.generator.PlotGenerator2;
import com.intellectualcrafters.plot.generator.PlotGenerator;
import com.plotsquared.bukkit.listeners.APlotListener;
import com.intellectualcrafters.plot.object.PlotPlayer;
import com.intellectualcrafters.plot.util.BlockManager;
@ -71,7 +71,7 @@ public interface IPlotMain {
public void unregister(PlotPlayer player);
public PlotGenerator2<?> getGenerator(String world, String name);
public PlotGenerator<?> getGenerator(String world, String name);
public APlotListener initPlotListener();

View File

@ -46,7 +46,7 @@ import com.intellectualcrafters.plot.flag.FlagValue;
import com.intellectualcrafters.plot.generator.ClassicPlotWorld;
import com.intellectualcrafters.plot.generator.HybridPlotWorld;
import com.intellectualcrafters.plot.generator.HybridUtils;
import com.intellectualcrafters.plot.generator.PlotGenerator2;
import com.intellectualcrafters.plot.generator.PlotGenerator;
import com.intellectualcrafters.plot.generator.SquarePlotManager;
import com.intellectualcrafters.plot.generator.SquarePlotWorld;
import com.plotsquared.bukkit.listeners.APlotListener;
@ -749,7 +749,7 @@ public class PS {
* @param world The world to load
* @param generator The generator for that world, or null if no generator
*/
public void loadWorld(final String world, PlotGenerator2 generator) {
public void loadWorld(final String world, PlotGenerator generator) {
PlotWorld plotWorld = getPlotWorld(world);
if (plotWorld != null) {
if (generator != null) {
@ -758,7 +758,7 @@ public class PS {
return;
}
final Set<String> worlds = (config.contains("worlds") ? config.getConfigurationSection("worlds").getKeys(false) : new HashSet<String>());
final PlotGenerator2 plotGenerator;
final PlotGenerator plotGenerator;
final PlotManager plotManager;
final String path = "worlds." + world;
if (!LOADING_WORLD && (generator.isFull())) {

View File

@ -4,11 +4,11 @@ import com.intellectualcrafters.plot.object.PlotCluster;
import com.intellectualcrafters.plot.object.PlotManager;
import com.intellectualcrafters.plot.object.PlotWorld;
public abstract class PlotGenerator2<T> {
public abstract class PlotGenerator<T> {
public final String world;
public T generator;
public PlotGenerator2(String world, T generator) {
public PlotGenerator(String world, T generator) {
this.world = world;
this.generator = generator;
}