Updated SQL handling

This commit is contained in:
BuildTools committed 2020-12-09 18:21:45 +00:00
1 parent 9d902a8453
commit b95629a986
8 files changed
+454 -39

No files matched your search

@@ -1,14 +1,20 @@
package me.william278.huskhomes2;
import me.william278.huskhomes2.Objects.TeleportationPoint;
import org.bukkit.Server;
import org.bukkit.entity.Player;
public class teleportManager {
private static void teleportPlayer(Player p, TeleportationPoint teleportationPoint) {
if (teleportationPoint.getServer().equals(Main.settings.getServerID())) {
String server = teleportationPoint.getServer();
if (!Main.settings.doBungee() || server.equals(Main.settings.getServerID())) {
p.teleport(teleportationPoint.getLocation());
messageManager.sendMessage(p, "teleport_success");
} else if (Main.settings.doBungee()) {
pluginMessageHandler.sendPlayer(p, server);
} else {
return;
}
}