......gsg

This commit is contained in:
befaci03 2026-01-13 22:07:08 +01:00
parent ad063b04e6
commit 6082acd36d
2 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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() &&