[PVP] Declare variable in the right scope for teleport swap