Skip to content

Players can bypass plot protection by using buckets on use-allowed blocks #4851

@zombachu

Description

@zombachu

Server Implementation

Paper

Server Version

1.21.11

Describe the bug

See video

To Reproduce

  1. Set a use flag that accepts blocks able to be flooded with liquid (e.g. levers)
  2. While holding a filled bucket, shift-right-click on a use-flag interactable block such that it would be placed in the foldable use-flag block

Expected behaviour

Unadded players to not be able to empty liquids on a plot

Screenshots / Videos

use.flag.exploit.mov

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/7abb0398dbe14adc9b8b0358b6d60029

PlotSquared Version

7.5.13-SNAPSHOT

Checklist

Anything else?

Line:

if (blockTypeWrapper.accepts(BlockTypes.AIR) || blockTypeWrapper

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApprovedA project maintainer or developer has reproduced this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions