MrGraversen / minecraft-rcon

A Minecraft RCON client in Java. Makes available an evolving command library, brings Minecraft concepts as Java OOP, RCON connection recovery, and much more.
MIT License
50 stars 13 forks source link

Code improvements & fix response packet size #22

Open WarningImHack3r opened 1 year ago

WarningImHack3r commented 1 year ago

Note If you ever merge this PR, don't forget to change back the JitPack's badge in the README alongside pushing a new tag

MrGraversen commented 1 year ago

Hi @WarningImHack3r, thank you for the contribution.

This is an old project and there are heaps of improvements I would like to make if time permitted 😁

I'm wondering, however, why you suggest to de-Lombok the project, instead of improving the usage of Lombok (there are many opportunities to do this)?

WarningImHack3r commented 1 year ago

Hi @MrGraversen! I'm not really the author of that change, it originally comes from https://github.com/mknjc/minecraft-rcon, which I found to be the only fork with (interesting) changes. I personally have nothing against Lombok, but it's true that it didn't seem really useful because a lot of things are doable natively in the latest versions of Java and the others that are not can easily be replaced. So a dependency removed feels like a free win, doesn't it?

Side note: the last commit has been made for a feature I needed and is not related at all to this PR, but as it was on the main branch the PR automatically picked it, I can try to cherry-pick commits to a dedicated branch and remake that PR if you want

WarningImHack3r commented 1 year ago

@MrGraversen I'm currently adding all missing commands, if you want to review the PR with my branch's current state you can do it now, because else everything will be included in the same PR. I plan to push the commit by today or tomorrow. If you don't mind then it's okay.

Side notes