Only set last position on standard teleports, fix #221

This commit is contained in:
William committed 2022-09-19 11:09:24 +01:00
1 parent 42214215a5
commit 39931dba04
1 file changed
+1 -1
@@ -350,7 +350,7 @@ public class TeleportManager {
plugin.getEventDispatcher().dispatchTeleportEvent(teleport);
// Update the player's last position
if (!plugin.getSettings().backCommandSaveOnTeleportEvent) {
if (!plugin.getSettings().backCommandSaveOnTeleportEvent && teleportType == TeleportType.TELEPORT) {
plugin.getDatabase().setLastPosition(onlineUser, onlineUser.getPosition());
}