A simple sleep plugin that negates the need for sleep voting and allows players to decide whether to allow Phantom attacks. Built against Spigot API 1.15, tested on Paper 1.16.1
- /sleep : Resets player sleep statistics that are used to calculate Phantom spawning.
- /sleeptime : Outputs current sleep statistics in minecraft ticks and converted into in-game days, hours, minutes and seconds.
- /adddays : Increases time since user last slept, which can trigger Phantom spawning if sleeptime => 3 days.
- Interacting with a bed does the same as /sleep if the permission is granted.
Command | Permission node | Feature |
---|---|---|
/sleep | simplysleep.sleep | Resets user sleep time |
/sleeptime | simplysleep.sleeptime | Checks time since last 'sleep' |
/adddays | simplysleep.adddays | Increases time since user last slept, which can trigger Phantom spawning |
N/A | simplysleep.oninteract | Enables /sleep to run when interacting with a bed (regardless of time) |
Improve statistics, need to calculate days since sleepDone!Command to immediately enable Phantom SpawnDone! Via /adddays- Configurable time to check a player's rest time, for toggleable warning when player exceeds 3 days without sleep (Phantoms spawn)
- Administrative commands to check + adjust player sleeptime