KrunghCrow
Allows players with permission to get a well-rested sleep

Supported Games
GameServerKingsGameServerKings

Sleep allows players with permission to get a well-rested sleep. While sleeping, players may grow hungry, get thirsty, and even get a bit dirty depending on settings.

By default, players will heal and restore 5 percent of their current levels every 10 seconds; and get dirty, hungry, and thirsty by 5 percent of their current levels every 10 seconds. Curing is also available, but disabled by default. Everything is changeable in the configuration file.

Permissions

  • sleep.allow -- Allows players to go to sleep

Commands

This plugin provides universal chat and console commands. When using a command in the chat, prefix it with a forward slash / or the symbol you have configured in umod.config.json.

  • sleep -- Make yourself go to sleep and rest

Configuration

{
  "Cure while sleeping (true/false)": false,
  "Heal while sleeping (true/false)": true,
  "Restore while sleeping (true/false)": true,
  "Curing rate (0 - 100)": 5,
  "Healing rate (0 - 100)": 5,
  "Restoration rate (0 - 100)": 5
}

Localization

{
  "Command": "sleep",
  "Dirty": "You seem to be a bit dirty, go take a dip!",
  "Hungry": "You seem to be a bit hungry, eat something",
  "NotAllowed": "You can't go to sleep right now",
  "Restored": "You have awaken restored and rested!",
  "Thirsty": "You seem to be a bit thirsty, drink something!",
  "WentToSleep": "You went to sleep."
}

Credits

  • Wulf The original author of this plugin
  • Krungh Crow Current maintainer

MIT License


Copyright (c) 2019 Wulf


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.