Fixed sleep not working

Removed "ply" isn't valid and replaced it with player which is valid and represents the player calling the function.
Merge pull request #556 from clrksml/patch-1

Fixed sleep not working