Grief Prevention

Grief Prevention

1M Downloads

EZChestShop compatibility

siBalda opened this issue ยท 5 comments

commented

Observed Behavior

When a player clicks on a shop (a chest) in a claimed zone, the plugin sends to the player error messages because he can't open chests

Expected Behavior

When the chest is a shop, no messages should be sent

Reproduction steps

1- Claim a zone
2- Create a shop with a chest
3- Another player use the shop

Stack trace or error log

No response

Server version

purpur 1.20.1

GriefPrevention version

16.18.1

Configuration

not relevant

Plugin list

No response

Running without GriefPrevention

  • I attempted running the server without GriefPrevention installed.
  • The problem does not occur when GriefPrevention is removed from the server.

Running with only GriefPrevention

  • I attempted running only GriefPrevention on the server.
  • The issue still occurs when GriefPrevention is the only plugin running.

Running on a fresh, clean server installation

  • I attempted testing for the issue on a new server.
  • The issue still occurs on a new server.

Using unmodified client

  • I attempted testing for the issue with the vanilla client.
  • The issue still occurs when using the vanilla client.

We appreciate you taking the time to fill out a bug report!

  • I searched for similar issues before submitting this bug report.
commented

I was wondering also if it is possible to fix that with your API but I can't find an event for interact like open a chest (I only see blockbreak event)

commented

It is possible to modify claim permissions by listening to the ClaimPermissionCheckEvent. The triggering event should be a PlayerInteractEvent for the case you're talking about, I assume. Setting the denial reason to null allows the action.

commented

I have a similar issue with Shopkeepers. Right clicking a shop sign also sends a message that a player has no permission even though they are not trying to edit the sign, they just right click it to open the shop GUI. Should I make a new issue for that on this repository or reach out to the owner of the Shopkeepers plugin?

commented

I have a similar issue with Shopkeepers. Right clicking a shop sign also sends a message that a player has no permission even though they are not trying to edit the sign, they just right click it to open the shop GUI. Should I make a new issue for that on this repository or reach out to the owner of the Shopkeepers plugin?

Yes, new issue. Signs are treated differently than chests (as far as I'm aware).

commented

Any update to this? I have the same issue as well, i don't want players to destroy shop stands from other people while still allowing to buy or sell from the physical chests that ECS uses as shops.