hi so i've been trying to make an http request asynchronous because i know how much it could fuck up a server if not so i've done a little research into using CompletableFuture to try and get this working
Main Class:
https://paste.md-5.net/qozijayele.java
Command Class:
https://paste.md-5.net/uzeyivelav.java
API Request Class:
https://paste.md-5.net/aciwujasuw.java
Listener Class:
https://paste.md-5.net/iduvenuqor.java
The thing is that this works fine, but then my server starts lagging out (I think there is a memory leak here somewhere but I don't know where to find it)
If someone could help me either find a better way of doing this or helping me solve this, it would be much appreciated