Update last stood at on teleport

This commit is contained in:
Trent Hensler 2018-05-21 13:38:51 -07:00
parent 605f6c8a82
commit f80b56dc6d

View File

@ -527,6 +527,7 @@ public class FactionsPlayerListener implements Listener {
public void onTeleport(PlayerTeleportEvent event) {
FPlayer me = FPlayers.getInstance().getByPlayer(event.getPlayer());
FLocation to = new FLocation(event.getTo());
me.setLastStoodAt(to);
// Check the location they're teleporting to and check if they can fly there.
if (p.getConfig().getBoolean("f-fly.enable", false) && !me.isAdminBypassing() && me.isFlying() && !me.canFlyAtLocation(to)) {