added a couple of damage blockers and placing wither roses under players with pvp off

This commit is contained in:
YouHaveTrouble
2020-08-20 14:12:08 +02:00
parent c74135ed11
commit 638b40c083
9 changed files with 175 additions and 40 deletions
@@ -0,0 +1,22 @@
package eu.endermite.togglepvp.util;
import org.bukkit.Location;
import org.bukkit.util.BoundingBox;
public class BoundingBoxUtil {
public static BoundingBox getBoundingBox(Location location, double radius) {
double x1 = location.getX()+radius;
double y1 = location.getY()+radius;
double z1 = location.getZ()+radius;
double x2 = location.getX()-radius;
double y2 = location.getY()-radius;
double z2 = location.getZ()-radius;
return new BoundingBox(x1, y1, z1, x2, y2, z2);
}
}