Supported Games
This plugin simply does protect sleepers from being killed by animals. The attacking animal will turn into "Flee"-mode once it attacks.
Per default this is activated for all players. This can be changed in config-file by setting Use Permissions to 'true'. The check for sleeping on top of foundation can be activated with "Required to sleep ON foundation > true". After a change run in console 'reload SleeperAnimalProtection'.
Permissions
sleeperanimalprotection.active-- Enables protection for player (if permissions enabled)
Configuration
{
"Settings": {
"Enable OnNpcTarget hook": true,
"OnNpcTarget return code (debug warning issue with TruePVE)": true,
"Permission name": "sleeperanimalprotection.active",
"Required to sleep ON foundation": false,
"Use permissions": false
}
}
Enable OnNpcTarget hookit is possible to disable this hook in the plugin. TruePVE as a similar function to avoid animal attack on sleepers.AnimalsIgnoreSleepers flag
this is to avoid a warning because between this plugin and TruePVE.changing the config parameter OnNpcTarget return code to false will also avoid the warning message.
Credits
- Thx to Fujikura the creator of this plugin
- thx to Krungh Crow for support to the plugin
MIT License
Copyright (c) 2021 Lorenzo
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.

