mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fixed mySQL issues
This commit is contained in:
1 parent
18b244ed65
commit
9ff3293621
18 files changed
+286
-150
No files matched your search
@@ -89,9 +89,16 @@ public class pluginMessageHandler implements PluginMessageListener {
|
||||
String replierName;
|
||||
boolean accepted;
|
||||
|
||||
// Respond to different cross-server requests
|
||||
switch (messageType) {
|
||||
case "set_teleportation_destination":
|
||||
case "set_tp_destination":
|
||||
setTeleportDestination(messageData, recipient);
|
||||
pluginMessageHandler.sendPluginMessage(recipient, messageData, "confirm_destination_set", "confirmed");
|
||||
break;
|
||||
case "confirm_destination_set":
|
||||
if (messageData.equals("confirmed")) {
|
||||
teleportManager.teleportPlayer(recipient);
|
||||
}
|
||||
break;
|
||||
case "tpa_request":
|
||||
teleportRequestHandler.teleportRequests.put(recipient, new TeleportRequest(messageData, "tpa"));
|
||||
@@ -120,6 +127,9 @@ public class pluginMessageHandler implements PluginMessageListener {
|
||||
messageManager.sendMessage(recipient, "tpa_has_declined", replierName);
|
||||
}
|
||||
break;
|
||||
case "teleport_to_me":
|
||||
teleportManager.teleportPlayer(recipient, messageData);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user