This commit is contained in:
boy0001 2014-11-08 12:42:35 +11:00
parent c22a476908
commit a9c78e491e
3 changed files with 7 additions and 13 deletions

View File

@ -319,6 +319,9 @@ public class PlotHelper {
final PlotWorld plotworld = PlotMain.getWorldSettings(world);
manager.setWall(world, plotworld, plot.id, block);
if (canSetFast) {
SetBlockFast.update(player);
}
}
public static void autoMerge(final World world, final Plot plot, final Player player) {

View File

@ -34,7 +34,7 @@ public class WorldGenerator extends PlotGenerator {
/**
* plotworld object
*/
DefaultPlotWorld plotworld;
DefaultPlotWorld plotworld = null;
/**
* Set to static to re-use the same managet for all Default World Generators
*/
@ -157,18 +157,9 @@ public class WorldGenerator extends PlotGenerator {
*/
public WorldGenerator(final String world) {
super(world);
if (this.plotworld == null) {
this.plotworld = new DefaultPlotWorld(world);
if (!PlotMain.config.contains("worlds." + world)) {
PlotMain.config = YamlConfiguration.loadConfiguration(PlotMain.configFile);
PlotMain.config.createSection("worlds." + world);
}
final ConfigurationSection section = PlotMain.config.getConfigurationSection("worlds." + world);
this.plotworld.saveConfiguration(section);
this.plotworld.loadDefaultConfiguration(section);
this.plotworld.loadConfiguration(section);
PlotMain.sendConsoleSenderMessage("&cFailed to load the plotworld settings from the configuration. Attempting to reload it");
this.plotworld = (DefaultPlotWorld) PlotMain.getWorldSettings(world);
}
this.plotsize = this.plotworld.PLOT_WIDTH;

View File

@ -1,6 +1,6 @@
name: PlotSquared
main: com.intellectualcrafters.plot.PlotMain
version: 2.2.2
version: 2.2.3
load: STARTUP
description: >
Easy, yet powerful Plot World generation and management.