Add /back on death command and related region flags
LadyCailinBot opened this issue ยท 2 comments
WORLDGUARD-2509 - Reported by orgin_org
While there already are plenty of plugins that has a /back command there is none that lets you define whether you are allowed to go back to a certain area. It would be nice if this was added directly into world guard as a combination of the command itself and a set of region flags that determines what happens if you try to go back into a region.
- New command: /back Sends a player back to the position of death (or not)
Alias: /return
- New region flag: back-type
values: allow/deny/teleport
default: deny
Function: Defines what happens if the player tries to /back into this region.
allow: The player returns to the point of death
deny: The player will be denied a return to this region and the command is canceled
teleport: The player will be returned to the regions teleport point
- New global flag: back-type
values: allow/deny
default: deny
Function: Defines what happens if the player tries to /back into a non regioned position.
allow: The player returns to the point of death
deny: The player will be denied a return and the command is canceled
- New region flag: death-teleport
values: allow/deny
default: deny
Function: If set to allow then the player is teleported to this regions teleport point if the player dies in this region.
- New global flag: back-timeout
values: 0 or a positive integer value
default: 0
Function: Defines how long (In seconds) after death the player must wait before being allowed to use the /back command
Comment by wizjany
out of our scope
the /ret command is already in commandbook and we can't handle external teleports that specifically when they come from other plugins
additionally, there is already a spawn flag to respawn players in a certain location
Comment by orgin_org
The /ret command in commandbook doesn't provide the functionality that I suggested here. Which is why I suggested that it was added to worldguard directly since it has direct access to regions and could handle the suggested flags properly.
But very well, it's your decision. At least I tried.