mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-06 12:33:08 +00:00
Claiming new plot
This commit is contained in:
parent
5c4f1332d6
commit
2dff41fa53
4 changed files with 45 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue