yannicklamprecht / WorldBorderAPI

A world border api that allows it to define a world border per player
MIT License
127 stars 14 forks source link

no such class as org.bukkit.craftbukkit.CraftWorld #119

Closed whynotmax closed 8 months ago

whynotmax commented 8 months ago

Describe the bug When I import the latest API into my project, there's no such class as org.bukkit.craftbukkit.CraftWorld I'm using Paper 1.20.2

To Reproduce Steps to reproduce the behavior:

  1. Implement into Project
  2. Code anything using the API
  3. Build and restart the server
  4. See error

Expected behavior Should just work fine

Screenshots If applicable, add screenshots to help explain your problem. [14:03:41] [Server thread/WARN]: [SkyBlock] Task #21 for SkyBlock v1.0 generated an exception java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_20_R3/CraftWorld at com.github.yannicklamprecht.worldborder.impl.WorldBorder.<init>(WorldBorder.java:26) ~[?:?] at com.github.yannicklamprecht.worldborder.api.WorldBorderApiImpl.getWorldBorder(WorldBorderApiImpl.java:27) ~[?:?] at com.github.yannicklamprecht.worldborder.api.WorldBorderApiImpl.setBorder(WorldBorderApiImpl.java:57) ~[?:?] at com.github.yannicklamprecht.worldborder.plugin.PersistenceWrapper.setBorder(PersistenceWrapper.java:73) ~[?:?] at com.github.yannicklamprecht.worldborder.plugin.PersistenceWrapper.setBorder(PersistenceWrapper.java:68) ~[?:?] at net.playodyssey.island.IslandManager.spawnOrReloadBorder(IslandManager.java:121) ~[?:?] at net.playodyssey.command.IslandCommand.lambda$create$0(IslandCommand.java:42) ~[?:?] at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:82) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:415) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1256) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:387) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1197) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1014) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[spigot-1.20.1-R0.1-SNAPSHOT.jar:3871-Spigot-d2eba2c-3f9263b] at java.lang.Thread.run(Thread.java:840) ~[?:?] Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_20_R3.CraftWorld ... 15 more

yannicklamprecht commented 8 months ago

You're using the 1.20.3/4 compatible version on 1.20.1. Download version https://github.com/yannicklamprecht/WorldBorderAPI/releases/tag/1.201.0 instead.

Versioning schema:

Minecraft version -> plugin version

1. -> 1..

e.g:

1.19.3 -> 1.193.0 1.20.1 -> 1.201.0 1.20.2 -> 1.202.0 1.20.4 -> 1.204.0

whynotmax commented 8 months ago

Thank you so much!