mirror of
https://github.com/MassiveCraft/Factions.git
synced 2025-02-21 22:31:49 +01:00
Update last stood at on teleport
This commit is contained in:
parent
605f6c8a82
commit
f80b56dc6d
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user