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

Custom enchantments can bypass regions? #2140

Open
6 tasks done
MinecraftNight4 opened this issue Sep 7, 2024 · 3 comments
Open
6 tasks done

Custom enchantments can bypass regions? #2140

MinecraftNight4 opened this issue Sep 7, 2024 · 3 comments
Labels
status:pending Pending acceptance or closure. status:upstream This issue should be handled upstream from WorldGuard. type:bug Incorrect behavior, not working as intended

Comments

@MinecraftNight4
Copy link

WorldEdit Version

7.3.6+6892-3d660b8

WorldGuard Version

7.0.10+d9424b1

Platform Version

Purpur 1.21.1-2302-0a9941e

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of WorldGuard compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

With 1.20.5, datapacks now can have custom enchantments, but seems like World Edit doesn't register some actions from this feature.

Currently I'm using 1.21.1 and I was preparing some stuff to launch a server with some friends. I was testing stuff on my server and I noticed that in a protected area without perms was able to REPLACE some blocks due to an enchantment.

Expected Behavior

I thought that because hitting a block is an action coming from a player, the enchantment would be blocked, but it seems that this is NOT the case.

Reproduction Steps

  1. Install this datapack and restart the server: test_datapack.zip
  2. Hold ANY hoe in your hand
  3. Enchant the hoe with this command: /enchat @s tester:grass_replacer
  4. Create a region where you don't have perms on it
  5. Hit any grass block in that region, using the hoe with LEFT CLICK.

Extra notes:

  • In my project, Music Discs take the place of vanilla items.
  • I tried to test if this enchantment affects any hoe, and I can confirm that this issue persists.
  • Sorry for the lag, i was self hosting this server on my notebook.
Minecraft_.1.21.1.-.Multijugador.servidor.de.terceros.2024-09-07.17-48-41.mp4
Minecraft_.1.21.1.-.Multijugador.servidor.de.terceros.2024-09-07.18-17-42.mp4

Optional WorldGuard-Report

https://paste.enginehub.org/4hPogKzuk.report

Anything Else?

No response

@MinecraftNight4 MinecraftNight4 added status:pending Pending acceptance or closure. type:bug Incorrect behavior, not working as intended labels Sep 7, 2024
@wizjany
Copy link
Collaborator

wizjany commented Sep 7, 2024

this is up to the platform. if we don't get an event saying the player changed a block, we can't prevent it.

@wizjany wizjany added the status:upstream This issue should be handled upstream from WorldGuard. label Sep 7, 2024
@MinecraftNight4
Copy link
Author

I'm really sorry, i forgot to upload the server log:
https://api.mclo.gs/1/raw/lNG8JC3

@wizjany
Copy link
Collaborator

wizjany commented Sep 7, 2024

that doesn't change anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:pending Pending acceptance or closure. status:upstream This issue should be handled upstream from WorldGuard. type:bug Incorrect behavior, not working as intended
Projects
None yet
Development

No branches or pull requests

2 participants