mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 04:53:00 +00:00
Working on flag system
This commit is contained in:
parent
6b988f616a
commit
277018df63
15 changed files with 118 additions and 58 deletions
|
@ -168,11 +168,6 @@ import org.bukkit.entity.Player;
|
|||
br = true;
|
||||
final PlotWorld pw = PlotMain.getWorldSettings(world);
|
||||
final Plot plot2 = PlotMain.getPlots(world).get(plot.id);
|
||||
if ((pw.DEFAULT_FLAGS != null) && (pw.DEFAULT_FLAGS.size() > 0)) {
|
||||
final Flag[] flags = FlagManager.parseFlags(pw.DEFAULT_FLAGS);
|
||||
plot2.settings.setFlags(flags);
|
||||
DBFunc.setFlags(plot2.world, plot2, flags);
|
||||
}
|
||||
}
|
||||
Auto.lastPlot = getNextPlot(Auto.lastPlot, 1);
|
||||
}
|
||||
|
@ -204,11 +199,6 @@ import org.bukkit.entity.Player;
|
|||
br = true;
|
||||
final PlotWorld pw = PlotMain.getWorldSettings(world);
|
||||
final Plot plot2 = PlotMain.getPlots(world).get(start);
|
||||
if ((pw.DEFAULT_FLAGS != null) && (pw.DEFAULT_FLAGS.size() > 0)) {
|
||||
final Flag[] flags = FlagManager.parseFlags(pw.DEFAULT_FLAGS);
|
||||
plot2.settings.setFlags(flags);
|
||||
DBFunc.setFlags(plot2.world, plot2, flags);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue