mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-04 06:28:49 +00:00
Only set last position on standard teleports, fix #221
This commit is contained in:
1 parent
42214215a5
commit
39931dba04
1 file changed
+1
-1
@@ -350,7 +350,7 @@ public class TeleportManager {
|
|||||||
plugin.getEventDispatcher().dispatchTeleportEvent(teleport);
|
plugin.getEventDispatcher().dispatchTeleportEvent(teleport);
|
||||||
|
|
||||||
// Update the player's last position
|
// Update the player's last position
|
||||||
if (!plugin.getSettings().backCommandSaveOnTeleportEvent) {
|
if (!plugin.getSettings().backCommandSaveOnTeleportEvent && teleportType == TeleportType.TELEPORT) {
|
||||||
plugin.getDatabase().setLastPosition(onlineUser, onlineUser.getPosition());
|
plugin.getDatabase().setLastPosition(onlineUser, onlineUser.getPosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user