EnableProtectionBasedOnDist: if true, enables spawnprotection if a player moves a distance greater than or equal to the amount set in config.
DisableProtectionBasedOnDist: if true, disables a players spawn protection if they move a distance thats configurable in the config away from where they spawned
ProtDisableDist: the distance they must move away from their spawn for DisableProtectionBasedOnDist to disable their spawn protection if DisableProtectionBasedOnDist is set to true in the config
ProtEnableDist: the distance they must move from their last location in one movement (example: tpa’ing or being teleported) for EnableProtectionBasedOnDist to enable their spawn protection if EnableProtectionBasedOnDist is set to true in the config
SpawnPositionGetDelay: The delay in milliseconds that it gets the players spawn location for DisableProtectionBasedOnDist to work right.
IF YOU USE CUSTOM SPAWN POINTS SET SpawnPositionGetDelay TO 200 OR SO MILLISECONDS HIGHER THAN THE TELEPORT DELAY SET IN CUSTOM SPAWN POINTS CONFIG FILE!
Gives players spawnprotection when they respawn or connect to the server.
By default it also gives them vanish for a few seconds after spawning or connecting, the amount of seconds vanish is given for can be set in the config as well as protection seconds.
Protection also cancels if they equip any items (can be disabled in the config).
Protection on join can also be disabled or enabled in the config.
Protection also cancels by default if the player is in a vehicle with any others, also if its enabled in the config protected players vehicles they are in will be auto repaired if the vehicle takes any damage (it will only be auto-repaired if its only that player in the vehicle).
NOTE: Add the your current set vanish delay in the config file to the MaxProtectionVanishTime (the MaxProtectionVanishTime has to be a whole number, if you add the vanish delay to it and its like 1.2 it will cause a error when the plugin loads, round it up if you need to).
- /pstop <player> : Manually stops protection on the specificed player,
Permission: <Permission Cooldown="0">stopprot</Permission>
- /pstart <player> : Manually enables protection on a player,
Permission: <Permission Cooldown="0">startprot</Permission>
If you would like to donate to support me you can do it through paypal Here