Claiming new plot

This commit is contained in:
boy0001 2014-12-23 03:04:56 +11:00
parent 5c4f1332d6
commit 2dff41fa53
4 changed files with 45 additions and 3 deletions

View file

@ -423,8 +423,7 @@ import java.util.UUID;
final World w = plot.getWorld();
final Plot p = new Plot(plot.id, UUIDHandler.getUUID(player), plot.settings.getBiome(), new ArrayList<UUID>(), new ArrayList<UUID>(), w.getName());
PlotMain.updatePlot(p);
DBFunc.createPlot(p);
DBFunc.createPlotSettings(DBFunc.getId(w.getName(), plot.id), plot);
DBFunc.createPlotAndSettings(p);
final PlotWorld plotworld = PlotMain.getWorldSettings(w);
if (plotworld.AUTO_MERGE) {
autoMerge(w, p, player);