Registers the /Sleep command of the Hunger plugin, which knocks the player out for 30 seconds and resets their
Fatigue to 0, provided it is at least 30.
Summary
Methods
OnRun(player, arguments)shared
Puts the player to sleep for 30 seconds and clears their fatigue, if it is at least 30.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/cwhl2rp/plugins/hunger/plugin/commands/sh_sleep.lua:12Puts the player to sleep for 30 seconds and clears their fatigue, if it is at least 30.
Parameters
- player
- arguments