check every entity withlike every second, and if some players that are touching the entity AND not change their position AND while your entity should move AND is also not changing its position, you could set the players origin or kill'emPHP Code:
entity isTouching( player )