mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-26 10:44:42 +02:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@ -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();
|
||||
|
||||
|
@ -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())) {
|
||||
|
@ -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;
|
||||
}
|
Reference in New Issue
Block a user