servertap-io / servertap

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

Reworking ServerTaps Core Systems (and adding a Reload Command) #236

Closed Velyn-N closed 1 year ago

Velyn-N commented 1 year ago

This depends on #217!!!

@srmullaney and I spend some time reworking the Core Systems of ServerTap. That includes:

We also made a Command (/servertap) that provides reload and info for ServerTap.

We did not touch the API V1 Implementations whenever possible. We might want to in the Future to further reduce getInstance() calls. They make Code hard to follow.

phybros commented 1 year ago

Fantastic!!

When you said

We did not touch the API V1 Implementations whenever possible

Does that mean you did make some v1 changes?

srmullaney commented 1 year ago

Yes! We worked on refactoring the cord ServerTap code, cleaned things up, etc. We did not make changes to the V1 API in this PR. We are planning on doing a V2 API where we refactor everything to do with the API.

phybros commented 1 year ago

OK, I tested a bunch of different stuff. Webhooks, websockets, TLS, some basic stuff like swagger etc.

As far as I can tell everything is working great! Going to do a little bit more testing and then I'm good to merge

srmullaney commented 1 year ago

Awesome! I believe #217 needs to be merged first as we did everything on the same branch.

phybros commented 1 year ago

Nah I think this branch/PR includes all those changes as well if you started from there. For example https://github.com/phybros/servertap/pull/236/files#diff-8a9174254c8614cc18da0da58a8e3f176f33bba5b5a062b764f8d26ef9b029a6

srmullaney commented 1 year ago

Ah okay. I was just going off what he had said. I think you are right but I am not a git expert and don't want to mess it up.