imDMK / DoubleJump

✨️ Efficient double jump plugin with many features and configuration possibilities.
https://www.spigotmc.org/resources/doublejump-1-17-1-20-1.110632/
GNU General Public License v3.0
13 stars 3 forks source link

API not detected #29

Closed Kifo1 closed 8 months ago

Kifo1 commented 9 months ago

Describe the bug I use the API in a plugin by adding the API jar as a library to my plugin. The problem is that the original DoubleJump plugin does not detect that my plugin contains the API and the DoubleJumpEvent in my plugin is not triggered. The Maven import from the github description doesn't work as well which means I have to add the dependency via an external jar instead of the maven repository.

How do you trigger it? Just running my plugin with a dependency and the original DoubleJump plugin on one server.

Console log No console log since there is no exception.

Server version 1.20.4

Plugin version v2.1.2 and latest API version

Plugin configuration Auto generated config file

Screenshots or Video

Additional context

imDMK commented 9 months ago

Hello, Thank you for the issue.

The jitpack dependency issue has been resolved. Try using the dependency from jitpack and let me know if the plugin still doesn't catch the API.

Regards.

Kifo1 commented 9 months ago

I still can't find the dependency with maven:

If I use this maven import:

com.github.imDMK.DoubleJump doublejump-api v2.07

I get this errror: Could not find artifact com.github.imDMK.DoubleJump:doublejump-api:pom:v2.07 in jitpack.io (https://jitpack.io) Could not find artifact com.github.imDMK.DoubleJump:doublejump-api:pom:v2.07 in jitpack.io (https://jitpack.io)

And with this maven import:

com.github.imDMK.DoubleJump doublejump v2.07

I get this error: com.github.imDMK.DoubleJump:doublejump:jar:v2.07 was not found in https://jitpack.io during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of jitpack.io has elapsed or updates are forced Try to run Maven import with -U flag (force update snapshots)

The first import is marked red by intelliJ. The second import withount "-api" in the artifactId is marked blue by intelliJ but it still throws an error.

imDMK commented 9 months ago

Please use 2.1.2 api version.

Kifo1 commented 9 months ago

Maven can't find this dependency for me. Could you send me the tag you use to get the API please?

imDMK commented 9 months ago

Hi, sorry for the late reply. Use this (jitpack is weird): implementation("com.github.imDMK:DoubleJump:doublejump-api:f7fa47de")

imDMK commented 8 months ago

Maven can't find this dependency for me. Could you send me the tag you use to get the API please?

And how it's going?