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

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

Closed
whynotmax opened this issue Dec 27, 2023 · 2 comments
Closed

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

whynotmax opened this issue Dec 27, 2023 · 2 comments

Comments

@whynotmax
Copy link

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
Copy link
Owner

yannicklamprecht commented Dec 27, 2023

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

@yannicklamprecht yannicklamprecht pinned this issue Dec 27, 2023
@whynotmax
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants