mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Fix an issue with cross-server teleport requests still trying to use plugin messages in redis mode
This commit is contained in:
1 parent
66484583f7
commit
5193be9f8a
5 files changed
+32
-31
No files matched your search
@@ -28,7 +28,7 @@ public class CrossServerMessageHandler {
|
||||
try (Connection connection = HuskHomes.getConnection()) {
|
||||
DataManager.setPlayerDestinationLocation(receivedMessage.getMessageData(),
|
||||
new TeleportationPoint(recipient.getLocation(), HuskHomes.getSettings().getServerID()), connection);
|
||||
new PluginMessage(receivedMessage.getMessageData(), Message.MessageType.CONFIRM_DESTINATION_SET, "confirmed").send(recipient);
|
||||
CrossServerMessageHandler.getMessage(receivedMessage.getMessageData(), Message.MessageType.CONFIRM_DESTINATION_SET, "confirmed").send(recipient);
|
||||
} catch (SQLException e) {
|
||||
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred responding to a plugin message teleport destination update");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user