mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 14:03:22 +00:00
Fixed player time / music / expire keep / Economy / remove unused messages
This commit is contained in:
parent
66a15d8d59
commit
5f3fab5e42
10 changed files with 57 additions and 24 deletions
|
@ -67,6 +67,12 @@ public class MainUtil {
|
|||
return true;
|
||||
}
|
||||
|
||||
public static Location getPlotCenter(Plot plot) {
|
||||
Location bot = getPlotBottomLoc(plot.world, plot.id);
|
||||
Location top = getPlotBottomLoc(plot.world, plot.id).add(1, 0, 1);
|
||||
return new Location(plot.world, bot.getX() + (top.getX() - bot.getX()) / 2, 0, bot.getZ() + (top.getZ() - bot.getZ()) / 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Merges all plots in the arraylist (with cost)
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue