With the update to 1.17 in some spigot servers it could not be revived with "sneak"
Due to this problem I have changed the method to compare the distances of the revived player and everything should work perfectly...
since it was of changes ... take advantage and change the selection of players when reviving. now compare the closest player and revive this one. Thank you very much for everything and greetings!