Ensure the user's current teleport is cleared for failed cross-server teleports

This commit is contained in:
William committed 2022-08-29 13:20:43 +01:00
1 parent 042fd757a0
commit a180311662
1 file changed
+3
@@ -314,7 +314,10 @@ public class TeleportManager {
for (final Settings.EconomyAction action : economyActions) {
plugin.performEconomyTransaction(onlineUser, action);
}
} else if (plugin.getSettings().crossServer) {
plugin.getDatabase().setCurrentTeleport(onlineUser, null);
}
}
/**