IntellectualSites / IntellectualSites/PlotSquared

Entities like Armor Stands, Item Frames, Boats are not cleared on /plot clear or /plot delete when on edge

Open
#4,833 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Approved Bug
Dominant language
Java
Stars
653
Forks
975
Avg merge
2m
Merged PRs (30d)
6

Description

Server Implementation

Paper

Server Version

1.21.11

Describe the bug

Hello, when you place entities next to the wall (on the edge), and then use /plot clear or /plot delete, they're not deleted, which is a bit security issue.

Or in case the entity is moved a bit into the wall, then it won't be deleted neither.

Image
To Reproduce
  1. Place entities like armor stand, boat, item frame, or any other next to the wall, or even push it into the wall, both should be fixed (when you use tools for armor stand editing, they can be pushed a bit into the wall & not deleted too, but it's maybe related to the firstly mentioned issue)
  2. Issue /plot clear or /plot delete
  3. Issue /plot confirm
  4. You'll see these entities weren't deleted. You can try place entity one more block farer from the edge where it will be normally deleted.
Expected behaviour

It should delete these entities, otherwise they'll be left on deleted plots or cleared plots.

Screenshots / Videos
Image These are not deleted (1 block from the wall)

These are deleted

Image (2 blocks from the wall)
Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/6881254477b14db99e7cebcca07e0eba

PlotSquared Version

7.5.10-SNAPSHOT

Checklist
Anything else?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce on Paper 1.21.11 with PlotSquared 7.5.10-SNAPSHOT using /plot clear and /plot delete, placing entities at or inside the plot edge. Trace the entity-removal handling for these commands; done means edge entities are removed after confirmation without affecting entities outside the plot.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.