BentoBoxWorld/Warps

Warps not being removed when using /editsign from Essentials

vyvin opened this issue · 2 comments

vyvin commented

Expected behavior

If a sign is edited to remove the [Welcome] or whatever first line requirement for the warp, the warp should be deleted

Observed/Actual behavior

Warp isn't deleted and can still be warped to

Steps/models to reproduce

  1. place a sign with [welcome] as the first line
  2. edit the sign with /sign set 1 (something)
  3. check the /ob warps
    1. See that the warp still there

BentoBox version

bbox version
[21:43:11 INFO]: Running AIRPLANE 1.17.1.
[21:43:11 INFO]: BentoBox version: 1.17.3
[21:43:11 INFO]: Database: JSON
[21:43:11 INFO]: Loaded Game Worlds:
[21:43:11 INFO]: oneblock_world (OneBlock): Overworld, Nether*
[21:43:11 INFO]: Loaded Addons:
[21:43:11 INFO]: AOneBlock 1.9.0-SNAPSHOT-b214 (ENABLED)
[21:43:11 INFO]: Border 3.2.0 (ENABLED)
[21:43:11 INFO]: Challenges 0.8.4 (ENABLED)
[21:43:11 INFO]: Chat 1.1.4 (ENABLED)
[21:43:11 INFO]: Level 2.7.2 (ENABLED)
[21:43:11 INFO]: Warps 1.11.1 (ENABLED)

Plugin list

No response

Other

No response

BONNe commented

Well, essentials are not developer-friendly... and never was.

It is not possible to detect that sign was edited, so, the only thing that could happen:

  • add an extra check before warp is used that checks if the sign still contains [welcome] text.

This fix is just in one way. So if a player wants to edit the sign and place [welcome] text by activating the warp, it will not work.

Yeah, it would seem the only fix is to prevent the Essential command via permissions. Sorry about that.