From 048c3eda30e400d8a269b71a7cc5fce8ee2ceb69 Mon Sep 17 00:00:00 2001 From: M_Viper Date: Sat, 23 May 2026 18:08:02 +0000 Subject: [PATCH] Delete src/main/java/de/teleportsuite/models/TeleportLocation.java via Git Manager GUI --- .../models/TeleportLocation.java | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 src/main/java/de/teleportsuite/models/TeleportLocation.java diff --git a/src/main/java/de/teleportsuite/models/TeleportLocation.java b/src/main/java/de/teleportsuite/models/TeleportLocation.java deleted file mode 100644 index 17740d7..0000000 --- a/src/main/java/de/teleportsuite/models/TeleportLocation.java +++ /dev/null @@ -1,38 +0,0 @@ -package de.teleportsuite.models; - -import org.bukkit.Bukkit; -import org.bukkit.Location; - -public class TeleportLocation { - private String world; - private double x, y, z; - private float yaw, pitch; - private String server; - - public TeleportLocation(String world, double x, double y, double z, float yaw, float pitch, String server) { - this.world = world; this.x = x; this.y = y; this.z = z; - this.yaw = yaw; this.pitch = pitch; this.server = server; - } - - public TeleportLocation(Location loc, String server) { - this.world = loc.getWorld().getName(); - this.x = loc.getX(); this.y = loc.getY(); this.z = loc.getZ(); - this.yaw = loc.getYaw(); this.pitch = loc.getPitch(); - this.server = server; - } - - public Location toBukkitLocation() { - return new Location(Bukkit.getWorld(world), x, y, z, yaw, pitch); - } - - public String getWorld() { return world; } - public double getX() { return x; } - public double getY() { return y; } - public double getZ() { return z; } - public float getYaw() { return yaw; } - public float getPitch() { return pitch; } - public String getServer() { return server; } - public boolean isLocalServer(String localServer) { - return server == null || server.equals("local") || server.equals(localServer); - } -}