NoSuchMethodError when using WorldEdit API (7.2.0) with FAWE
rhystedstone opened this issue ยท 2 comments
Server Implementation
Paper
Server Version
1.18.2
Describe the bug
My code interfaces with the WorldEdit API (version 7.2.0), specifically worldedit-core
and worldedit-bukkit
.
When using Region::getBoundingBox()
, a NoSuchMethodError
is thrown.
Stacktrace:
Caused by: java.lang.NoSuchMethodError: 'com.sk89q.worldedit.regions.CuboidRegion com.sk89q.worldedit.regions.Region.getBoundingBox()'
at net.abyssalvoid.commandzones.util.WorldEditAPI.getSelection(WorldEditAPI.java:68) ~[commandzones-1.0.0-dev.jar:?]
at net.abyssalvoid.commandzones.util.SelectionManager.getSelection(SelectionManager.java:31) ~[commandzones-1.0.0-dev.jar:?]
at net.abyssalvoid.commandzones.command.define.DefineZoneCommand.onExecute(DefineZoneCommand.java:34) ~[commandzones-1.0.0-dev.jar:?]
at net.abyssalvoid.subcommandlib.PlayerCommand.onExecute(PlayerCommand.java:36) ~[subcommandlib-2.1.0-rc2.jar:?]
at net.abyssalvoid.subcommandlib.CommandGroup.onExecute(CommandGroup.java:98) ~[subcommandlib-2.1.0-rc2.jar:?]
at net.abyssalvoid.subcommandlib.CommandGroup.onExecute(CommandGroup.java:98) ~[subcommandlib-2.1.0-rc2.jar:?]
at net.abyssalvoid.subcommandlib.CommandGroup.onCommand(CommandGroup.java:214) ~[subcommandlib-2.1.0-rc2.jar:?]
at net.abyssalvoid.subcommandlib.presets.SimpleCommandManager.onCommand(SimpleCommandManager.java:120) ~[subcommandlib-2.1.0-rc2.jar:?]
at net.abyssalvoid.commandzones.CommandZones.onCommand(CommandZones.java:110) ~[commandzones-1.0.0-dev.jar:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[purpur-api-1.18.2-R0.1-SNAPSHOT.jar:?]
... 21 more
Maven dependencies:
<!-- WorldEdit Support -->
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-core</artifactId>
<version>7.2.0</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.sk89q.worldedit</groupId>
<artifactId>worldedit-bukkit</artifactId>
<version>7.2.0</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
To Reproduce
- Get a
Region
. - Attempt to use
Region::getBoundingBox()
NoSuchMethodError
.
Expected behaviour
I expected the code to run normally, as I'm using the latest (stable) major & minor version of the WorldEdit API.
Fawe Version
FastAsyncWorldEdit-Bukkit-2.4.4-SNAPSHOT-265
Checklist
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
I can confirm the method doesn't exist in the current FAWE API implementation: com.sk89q.worldedit.regions.Region
I can also confirm this code works perfectly in WorldEdit v7.2.12.