Supported Games
This plugin was designed to be a light-weight option to prevent players from exploiting other players that have recently disconnected due to network problems or after a server has crashed.
If you sleep in the open then you're fair game, but accidents happen and this helps prevent users from freaking out when they lose their connection. This plugin now also optionally protects players from taking damage. To avoid this being abused during raids consider setting to a reasonable time of 300 seconds. Any attempt to loot or damage a protected player will result in a warning message in the players chat and a warning in the server console. Track toxic players who try and take advantage of people on your server.
Chat Commands
/dcp add-- Add player you are looking at to the list of protected players for testing/dcp remove-- Remove player you are looking at from the list of protected players/dcp list-- List all current user IDs that are protected/dcp time-- Show the number of seconds since the server started for troubleshooting your configuration
Note: These commands are for admin only.
Configuration
DC_DelayInSeconds : Defaults to 300 seconds (5 minutes) - Time after a disconnect to protect a player
Start_DelayInSeconds: Defaults to 300 seconds (5 minutes) - Time after a server starts to protect all players
PreventDamage: defaults to true - Prevents damage to protected players
PreventLooting: defaults to true - Prevents looting of protected players
{
"DC_DelayInSeconds": 300,
"Start_DelayInSeconds": 300,
"PreventDamage": true,
"PreventLooting": true
}
MIT License
Copyright (c) 2020 FireStorm78
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.

