WorldGuard

WorldGuard

8M Downloads

on-interact doesn't work with enchantment tables.

LadyCailinBot opened this issue ยท 9 comments

commented

WORLDGUARD-3227 - Reported by andrewkm

With Spigot 1.8 on-interact does not work with enchantment tables.

Yes I tried item numbers and item names.
Yes I've tried on-use. It detects the enchantment_table and 116:0 absolutely correctly.
Yes my on-interact works absolutely fine with things such as dispensers.

WG is simply not recognizing on-interact with enchantment tables as it did in 1.7.10

Please help :)

Using worldguard 6.0 #1473

commented

Comment by PseudoKnight

[edit: sorry for all the editing... processing this as I write, which is dumb]

Just realized this is on the build of WG where blacklist is broken.
http://youtrack.sk89q.com/issue/WORLDGUARD-3219

commented

Comment by andrewkm

I'm using that worldguard build from Spigot. Still broken.

commented

Comment by PseudoKnight

That build # is not the fixed version, so I'm going to assume you either mistyped or updated after you posted that.

Does this still occur on an up-to-date Spigot build? Looks like WG handles blocks like this very genericly. There's no special enchantment table code. So if you're having a problem, it's likely not WG if it's only happening with this one block.

commented

Comment by PseudoKnight

Also, for what it's worth, player interact events are triggering for me for enchantment tables in latest Spigot as of this time.

commented

Comment by sk89q

Note that you can use {{-Dworldguard.debug.listener=true}} to show, in console, events that WG is picking up: http://i.imgur.com/NLSn0Bk.png

However, it doesn't seem to be picking up enchantment tables correctly. Glancing through the code (https://github.com/sk89q/WorldGuard/blob/master/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java#L335) doesn't seem to show anything that would cause it not to.

@PseudoKnight Do you what kind of PlayerInteractEvent is happening for the enchantment table?

commented

Comment by PseudoKnight

I tested it with CommandHelper.

https://github.com/sk89q/CommandHelper/blob/master/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.java#L98

I brought up my test server and WG 5.9 is blocking it correctly. Again, on the latest Spigot as of this post.

commented

Comment by andrewkm

I can confirm just as sk89q has said that Worldguard 6.0 on Spigot does not recognize enchantment tables.
Absolutely everything else in our blacklist works perfectly as expected. (And we use it for near 30-40 different items)

commented

Comment by sk89q

...is this still an issue?

commented

Comment by andrewkm

Yes. This is still an issue. I just did a fresh test using latest WG and latest Spigot.
on-use is working
on-interact is broken for enchantment tables (item 116)