servertap-io / servertap

ServerTap is a REST API for Bukkit/Spigot/Paper Minecraft servers
https://servertap.io
MIT License
225 stars 57 forks source link

Developer API for Custom Endpoints #217

Closed Velyn-N closed 1 year ago

Velyn-N commented 1 year ago

I brought this Idea up in the Discord a little over a week ago and finally implemented it today.

The API is build with Interfaces and underlying Implementations. It is used by other Plugins via Bukkits ServiceProvider Feature. That way you do not have any Plugin Load Order Problems and even circular dependencies would not be a problem.

There is Documentation about the API in README.md

To be able to add ServerTap as a Maven Dependency it has to be installed into the local Maven Repository. That of course is not very user friendly. Maybe you could use something like Jitpack or GitHub Packages to distribute ServerTap? I wanted to leave this decision to the maintainers.

Velyn-N commented 1 year ago

I looked into Building with Jitpack and made it work. I adjusted the Documentation in README.md accordingly. This will work only after this PR is merged as Jitpack tries to compile with Java 8 by default.

I tested it with my Fork and it works:

<dependency>
  <groupId>com.github.Velyn-N</groupId>
  <artifactId>servertap</artifactId>
  <version>0.5.4-SNAPSHOT</version>
  <scope>provided</scope>
</dependency>

(Yes, I but in the wrong version format in the tag. Works fine tho xD)

If wanted I can further explain how the Jitpack Stuff works.

phybros commented 1 year ago

https://discord.com/channels/919982507271802890/1130930980123857066

Velyn-N commented 1 year ago

Closed by #236