Fixed player time / music / expire keep / Economy / remove unused messages

This commit is contained in:
boy0001 2015-06-10 04:54:00 +10:00
parent 66a15d8d59
commit 5f3fab5e42
10 changed files with 57 additions and 24 deletions

View file

@ -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)
*