Fixed up methods throwing errors when not merged properly
Plot merge command now merges plots as far as the plugin is concerned
- Roads are not removed between the plots
- No way to unlink a merged plot
Added plot delete command (permission: plots.clear.delete)
Modified plot clear to simply clear the terrain.
- Fixed weird bug with plot clear
(I basically just swapped the plot.clear() method and
DBFunc.delete(plot) as referencing the plot directly afterwards added it
back to the HashMap)
Like... I added that space there, between that equals sign and the word
'this'
- Re-added old plot clear algorithm (in case SetBlockFast fails)
- Made some performance improvements with plot clear
- Used built in code cleaning in eclipse to make everything look nicer
- Bug fixes
PlotWorld class:
/*
* - All existing PlotWorld instances should be kept in PlotMain (worlds
variable)
* - The accessors and mutators are:
* PlotMain.isPlotWorld(world)
* PlotMain.getPlotWorlds() or PlotMain.getPlotWorldsString() <- use
this if you don't need to get world objects
* PlotMain.getWorldSettings(World) - get the PlotWorld class for a
world
*
* Also added is getWorldPlots(World) as the plots are now sorted per
world
*
* To get the world of a plot, you can use plot.world - (string) or
plot.getWorld() - (world object)
*
* All PlotWorld settings are per world in the settings.yml (these
settings are automatically added when a world is loaded, either at
startup or if a new world is created):
* - You can find this in the WorldGenerator class (yeah, it's possibly
not the best place, but it makes sure worlds are added to the
settings.yml)
*
* All new DEFAULT CONSTANTS should be static and be given a value
* All new variables should not be static and should not be given any
values here, but rather in the WorldGenerator class
*
*/