Fixed sleep not working

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