Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't allow teleportation right after the player has taken damage #421

Closed
BONNe opened this issue Dec 27, 2018 · 1 comment
Closed

Don't allow teleportation right after the player has taken damage #421

BONNe opened this issue Dec 27, 2018 · 1 comment
Labels
Type: Enhancement Improvement or modification which is usually a new feature.

Comments

@BONNe
Copy link
Member

BONNe commented Dec 27, 2018

Is your feature request related to a problem? Please describe.
In AcidLand players take damage in water. But if they fall into the water far away from land, they can avoid losing their staffs by teleporting back to an island.
Also, when a mob attacks to a player, and it is far from home location, then the player could run away from losing a battle by teleporting back home.

Describe the solution you'd like
Disable teleport commands ./is and ./is go, after a user takes damage for a small period.
This can be implemented:

  • as World Flag, by disabling teleport after 20-40 ticks (1-2 sec) after last damage was taken (Player.getNoDamageTicks()).
  • as more configurable (and overcomplicated), like an ability to specify which damage disables teleport and how long for each damage type it can be. For example: if the damage was taken for a mob, then 5 sec, otherwise 2 sec.
    And if you are going via 2. option, then probably it should be an addon.

Describe alternatives you've considered
Use alternative plugins, which allows to do it :)

This issue relates to: #403

@tastybento tastybento added the Type: Enhancement Improvement or modification which is usually a new feature. label Dec 27, 2018
@tastybento
Copy link
Member

Interesting idea. It's been asked for before in terms of PVP too.

@Poslovitch Poslovitch changed the title Do not teleport on damage taken. Don't allow teleportation right after the player has taken damage Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants