......gsg
This commit is contained in:
parent
ad063b04e6
commit
6082acd36d
2
pom.xml
2
pom.xml
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>eu.creeper.mc</groupId>
|
||||
<artifactId>creeperpit</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>2.0.01-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>creeperpit</name>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
package eu.creeper.mc.creeperPit.worldguard;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Region {
|
||||
private final String rname;
|
||||
|
|
@ -15,7 +13,7 @@ public class Region {
|
|||
private boolean allowPvp;
|
||||
private boolean allowDrop;
|
||||
|
||||
public Region(@NotNull String name, @NotNull Location min, @NotNull Location max, @Nullable String label) {
|
||||
public Region(String name, Location min, Location max, String label) {
|
||||
this.rname = name;
|
||||
this.label = label;
|
||||
|
||||
|
|
@ -28,7 +26,7 @@ public class Region {
|
|||
this.allowDrop = true;
|
||||
}
|
||||
|
||||
public boolean contains(@NotNull Location loc) {
|
||||
public boolean contains(Location loc) {
|
||||
return loc.getWorld().equals(min.getWorld()) &&
|
||||
loc.getX() >= min.getX() && loc.getX() <= max.getX() &&
|
||||
loc.getY() >= min.getY() && loc.getY() <= max.getY() &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user