mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Updated SQL handling
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user