If player dies at some dangerous places like lava or void, plugin could try to find a closet place (with a range) to make players back-ed at that place.
If plugin failed to found a safe place in range, when players type /back, plugin will teleport them to the actual position of death.
back-protection:
# search a safe point for players to back, if no places could found within this, then send a message to player to mention that they need to face the dangerous situation on back.
range: 10
action: "notify"
# notify, deny, teleport
# in messages file:
# back-notify: "The place you want to go is not safe. Continue by typing command \"/back confirm\""
# back-denied: "You've died at a dangerous place and you can't back to there. Sorry :("
# back-teleport: "The place you want to go is not safe, however we teleported you there. :)"
Region limit:
Intergrate with WorldGuard or Residence.
WorldGuard: add flags, named huskhome-{commands}
{commands} should be replaced by command name, like back or tpaccept or sethome.
flag type: string, you could set three values:
notify: player will be notified if they performed this action at this area, meanwhile they need extra commands to confirm their action.
normal (the default value if not present): do nothing
deny: player will be denied if they try to perform this action.
Example:
To prevent some player wrongly set their waypoints (homes) at the world spawn, I created an area called spawn-region and set huskhomes-sethome flag to notify, so if a player typed /sethome in this region, they will be notified and need to type /sethomeconfirm or something else to confirm set their home there.
The Residence is same as WorldGuard, you could consider as you like. :)
/back
:/back
, plugin will teleport them to the actual position of death.huskhome-{commands}
{commands}
should be replaced by command name, likeback
ortpaccept
orsethome
.string
, you could set three values:spawn-region
and sethuskhomes-sethome
flag tonotify
, so if a player typed/sethome
in this region, they will be notified and need to type/sethomeconfirm
or something else to confirm set their home there.