About Sleep
Description
The Sleep plugin allows players to enter sleep mode and automatically heal during that time. Players with the appropriate permission can use the /sleep command to go into sleep mode, during which their health will continuously regenerate. Admins have the ability to bypass the cooldown, allowing them to use the command as often as they like.
Features
- Players can use the /sleep command to enter sleep mode and heal themselves.
- Automatic healing of 5 HP every 5 seconds while the player is sleeping, as long as their health is below 100 HP.
- The health bar shows the healing progress and is displayed at the top center of the screen.
- The UI is removed once the player is fully healed (100% health) or leaves sleep mode.
- Admins with the .admin permission can use the command without a cooldown.
Config
There are no configurable options. The plugin is designed with all essential settings hardcoded:
Healing Amount: 5 HP every 5 seconds
Max Health: 100 HP
Cooldown for players: 60 seconds
No configuration files are needed.
Permissions
The plugin uses two permissions:
sleep.use
Allows players to use the /sleep command. Players are subject to a 60-second cooldown.
sleep.admin
-Allows players to use the /sleep command without a cooldown. Ideal for administrative purposes or special player roles.
load, run, enjoy
Support Discord