Releases: FluxpointDev/Fluxpoint4J
v1.2.1: Fix wrong boolean name
The MCServerPingResponse
had used a boolean called fullQuerry
rather than fullQuery
This would result in Gson, the library used to parse JSON into class instances, not parsing the fullQuery
response of the Fluxpoint API.
The old getter is still present (And now returns the proper boolean value) for backwards compatability sake but is deprecated and will be removed in the next version...
v1.2.0: New MCRequestBuilder and some deprecation
To support the latest changes made to the Fluxpoint API have the methods used previously to perform a MC server request been deprecated in favour of a new method to obtain an instance of a MCRequestBuilder
class.
This class allows you to set the host, port and if the server icon should be included in the response (New).
Just like with the methods does it allow to perform a synchronous request or an asynchronous one by wrapping it into a CompletableFuture.
The deprecated methods are planned to be removed 2 versions after this one. They should still work fine, but a move is highly recommended.
Small patch version to try new build.
This is a new release to allow a new version to be build on jitpack, hopefully fixing issues
v1.1.2: Fix broken URL for MC server lookup
There was a typo, resulting in the URL used for MC info requests being https://api.fluxpoint.dev//mc/ping?host=host&port=25565
v1.1.1: Minor corrections
This update brings some small corrections to the WelcomeImage.Builder
class.
You can apparently provide an empty String for the icon, banner or members text to hide them, so this is now allowed by the Wrapper.
In addition have missing Javadoc been added.
Installation
Gradle
repositories {
maven { url = "https://jitpack.io" }
}
dependencies {
implementation "com.github.fluxpointdev:Fluxpoint4J:v1.1.1"
}
Maven
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.fluxpointdev</groupId>
<artifactId>Fluxpoint4J</artifactId>
<version>v1.1.1</version>
</dependency>
</dependencies>
v1.1.0: Add /mc/ping support
New stuff
This update adds support for the mc/ping
endpoint of the FluxpointAPI by providing new methods to use:
getMCServerInfo(String host)
for pinging a server on the default port (25565)getMCServerInfo(String host, int port)
for pinging a server on the specified port.queueMCServerInfo(String host)
does the same asgetMCServerInfo(String host)
but puts it into aCompletableFuture
queueMCServerInfo(String host, int port)
does the same asgetMCServerInfo(String host, int port)
but puts it into aCompletableFuture
Breaking changes!
There are some breaking changes in this release!
Most noticeably, all get methods in the Fluxpoint4J
class now return a GenericAPIResponse
class. This allows me to have a single class for both successful and failed responses.
The GeneratedImage
class still exists and implements this interface now, but you have to make an instanceof
check now before trying to cast the GenericAPIResponse
to a GeneratedImage
class, as it could also be a FailedAPIResponse
instance too.
The README has some examples to show you how to do this.
Please report any issues on the issue tracker!
Installation
Gradle
repositories {
maven { url = "https://jitpack.io" }
}
dependencies {
implementation "com.github.fluxpointdev:Fluxpoint4J:v1.1.0"
}
Maven
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.fluxpointdev</groupId>
<artifactId>Fluxpoint4J</artifactId>
<version>v1.1.0</version>
</dependency>
</dependencies>
1.0.0: First release
Welcome to the first release!
If everything works as expected can you get the latest version now using https://jitpack.io
Gradle
repositories {
maven { url = "https://jitpack.io" }
}
dependencies {
implementation "com.github.fluxpointdev:Fluxpoint4J:v1.0.0"
}
Maven
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.fluxpointdev</groupId>
<artifactId>Fluxpoint4J</artifactId>
<version>v1.0.0</version>
</dependency>
</dependencies>