Selection API no longer works since commit 350d81d of string-ids branch (MC1.13)
LadyCailinBot opened this issue ยท 3 comments
WORLDEDIT-3671 - Reported by steve4744
Hi,
I'm trying to update one of my plugins to 1.13 using the latest version of WE from string-ids branch:
worldedit-bukkit-7.0.0-SNAPSHOT-dist.jar
Unfortunately the selection API for WE no longer works:
https://www.sk89q.com/2013/03/worldedit-selections-for-bukkit-plugins/
Is there another way to do this now since the 'selection' code was removed in commit 350d81d?
Thanks,
Steve
Comment by me4502
Yeah, I'll be writing a blog post on it shortly. Basically The selection API has been inside WorldEdit core for years now, and that should have been used instead.
Here's some example code of the migration, https://github.com/EngineHub/CraftBook/pull/210/files#diff-2bfe26e49ca8246729471d6eaff041daR109
Comment by steve4744
Thanks Matthew - the CraftBook example was useful. I had managed to get it to work but CraftBook did in 1 line what I'd done in 6, so was able to tidy up my code quite a bit :-)
Fixed.