18 Zeilen
521 B
Java
18 Zeilen
521 B
Java
package me.yaruma.fightsystem.utils;
|
|
|
|
import org.bukkit.Location;
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class Region {
|
|
|
|
public static boolean isInRegion(Location location, int minX, int minY, int minZ, int maxX, int maxY, int maxZ) {
|
|
|
|
if(location.getBlockX() >= minX && location.getBlockX() <= maxX && location.getBlockY() >= minY && location.getBlockY() <= maxY && location.getBlockZ() >= minZ && location.getBlockZ() <= maxX) {
|
|
return true;
|
|
} else
|
|
return false;
|
|
}
|
|
|
|
|
|
}
|