Fixed sleep not working

Removed "ply" isn't valid and replaced it with player which is valid and represents the player calling the function.