Sleeper Guard protects sleeping players with permission from being hurt, killed, or looted. Damage and loot delays can also be configured, which are set to 30 seconds by default and can be disabled by setting them to 0.
Permissions
sleeperguard.damageprotection
-- Protects player from damage sourcessleeperguard.lootprotection
-- Protects player from being lootedsleeperguard.nodamagedelay
-- Excludes player from configured damage delaysleeperguard.nolootdelay
-- Excludes player from configured loot delaysleeperguard.notimelimit
-- Having this permission will always be protectedsleeperguard.canloot
-- Allows looting of protected playerssleeperguard.candamage
-- Allows damage to protected playerssleeperguard.npcignore
-- Allows protected players to be ignored by NPCs
Configuration
{
"Use Teams (Used For Loot)": false,
"Use Clans (Used For Loot)": true,
"Use Friends (Used For Loot)": true,
"Damage delay (seconds) (0 to disable)": 0.0,
"Damage guard times (seconds) (0 to unlimit)": 0.0,
"Loot delay (seconds) (0 to disable)": 0.0,
"Loot guard times (seconds) (0 to unlimit)": 0.0,
"Notify player (true/false)": true,
"Notification interval (seconds)": 5.0,
"NPC ignores sleepers (Enabling it can cause server lag)": false,
"Chat Settings": {
"Chat prefix": "<color=#00FFFF>[SleeperGuard]</color>: ",
"Chat steamID icon": 0
}
}
Localization
{
"NoDamage": "You can't hurt this sleeping player. Protection time left: {0} seconds.",
"NoLoot": "You can't loot this sleeping player. Protection time left: {0} seconds."
}
Credits
- Wulf, the original author of this plugin
MIT License
Copyright (c) 2019 Arainrr
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.