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

1_16_R3 incompatible #164

Open
x9nico opened this issue May 26, 2021 · 5 comments
Open

1_16_R3 incompatible #164

x9nico opened this issue May 26, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@x9nico
Copy link

x9nico commented May 26, 2021

Describe the bug
A clear and concise description of what the bug is.

NPCLib usage option
NPCLib can be used in multiple ways, please provide the number corresponding to your usage option.

Option 3

NPCLib JAR name
npclib-plugin-2.12.1-SNAPSHOT.jar

Server version
E.g. CraftBukkit version git-Spigot-a1f2566-97b0057 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT) (use command /version)

Purpur version git-Purpur-1131 (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT)

To Reproduce
Steps to reproduce the behavior:
Just start your server With purpur 1.16.5

image

@x9nico x9nico added the bug Something isn't working label May 26, 2021
@schiasileon
Copy link

same problem

@keksgauner
Copy link

up to v1_16_R3 == 1.16.5
I think you need an update

@keksgauner
Copy link

keksgauner commented Jul 28, 2021

I checked my server with Bukkit.getBukkitVersion() and getServer().getClass().getPackage().getName()
I got 1.16.5-R0.1-SNAPSHOT and org.bukkit.craftbukkit.v1_16_R3 back there is a v1_16_R3. But there is still this Error
NPCLib Failed to initiate. Your server's version (v1_16_R3) is not supported

The plugin try to get the version with this.getServer().getClass().getPackage().getName().split("\.")[3]; I got v1_16_R3 this is right
But why it cannot get with Class.forName("net.jitse.npclib.nms." + versionName + ".NPC_" + versionName); the right class

Oh I see there is no nms

@schiasileon
Copy link

I figured it out. You need to shade the -plugin and not -api version because the api version does not include the nms packages thus not finding the classes.

@keksgauner
Copy link

keksgauner commented Jul 28, 2021

Yes you need

<dependency>
<groupId>net.jitse</groupId>
    <artifactId>npclib-plugin</artifactId>
    <version>2.12.1-SNAPSHOT</version>
    <scope>compile</scope>
</dependency>

In Intellij you must exract the project to the root of your plugin.
(Sorry for my english)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants