Fix an issue with cross-server teleport requests still trying to use plugin messages in redis mode

This commit is contained in:
William committed 2021-10-03 21:16:22 +01:00
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");
}