Changelog¶
This page lists the recent changes made towards the AdvancedServerListAPI.
They are ordered newest to oldest.
v4.0.0¶
Breaking Changes¶
- Changed
extraPlayersCount()
andmaxPlayersCount()
from using an Integer to using a String instead.- This also affects their corresponding
ProfileEntry.Builder
methods.
- This also affects their corresponding
- Removed all previously deprecated methods.
Added¶
- New setter methods added to [
ProfileEntry.Builder
][profilentry.builder] class:
v3.3.0¶
Added¶
- Added
PostServerListSetEvent
to the different platform APIs.- Fired after AdvancedServerList is done with handling the PingEvent.
- Allows to retrieve the
ProfileEntry
used for the PingEvent.
v3.2.1¶
Changed¶
- Removed usage of
${api.version}
in the different pom.xml for version resolving.
v3.2.0¶
Added¶
- New setter methods added to
ProfileEntry.Builder
class, replacing old ones (See deprecations below):
Changed¶
-
The API has been moved to Codeberg and is now available under a new repository URL to download. The group and artifact ID remained the same, but version no longer has a
v
prefix:<repositories> <repository> <id>codeberg</id> <url>https://codeberg.org/api/packages/Andre601/maven/</url> </repository> </repositories> <dependencies> <dependency> <groupId>ch.andre601.asl-api</groupId> <artifactId>api</artifactId> <version>{apiVersion}</version> <scope>provided</scope> </dependency> </dependencies>
repositories { maven = { url ="https://codeberg.org/api/packages/Andre601/maven/" } } dependencies { compileOnly "ch.andre601.asl-api:api:{apiVersion}" }
Deprecated¶
- Setters in
ProfileEntry.Builder
deprecated in favour of more consistent method naming.setExtraPlayersCount(Integer)
setExtraPlayersEnabled(NullBool)
setFavicon(String)
setHidePlayersEnabled(NullBool)
setMaxPlayersCount(Integer)
setMaxPlayersEnabled(NullBool)
setMotd(List<String>)
setPlayerCountText(String)
setPlayers(List<String>)
v3.1.0¶
Added¶
- New getters in
ProfileEntry
:maxPlayersEnabled()
- Returns the value forplayerCount -> maxPlayers -> enabled
asNullBool
maxPlayersCount()
- Returns the value ofplayerCount -> maxPlayers -> amount
as nullableInteger
- New setters in
ProfileEntry.Builder
:setMaxPlayersEnabled(NullBool)
- Sets whether the max players feature is enabled or not.setMaxPlayersCount(Integer)
- Sets the number to use for the max players count.setExtraPlayersCount(Integer)
- Replacement for deprecatedsetExtraPlayerCount(Integer)
method.
Deprecated¶
setExtraPlayerEnabled(Integer)
inProfileEntry.Builder
- Typo in method name.
v3.0.0¶
Breaking Changes¶
- Removed
platform-spigot
API in favour of a more generic soundingplatform-bukkit
- Renamed all platform-specific packages from
ch.andre601.advancedserverlist.<platform>
toch.andre601.advancedserverlist.api.<platform>
Added¶
- New platform-specific
GenericServer
instances with their own methods to use.BukkitServer
- Contains agetWorlds()
method that returns aMap<String, World>
of all loaded worlds in the server.BungeeProxy
- Contains agetServers()
method that returns aMap<String, ServerInfo>
of all known Servers for BungeeCord.VelocityProxy
- Contains agetServers()
method that returns aMap<String, RegisteredServer>
of all known Servers for Velocity.
Removed¶
- All previously deprecated
getX()
methods from theProfileEntry
record
v2.1.0¶
Changed¶
- Turned
ProfileEntry
class into a record- Former
getX()
methods are now deprecated in favour of the record's ownx()
methods (i.e.getMotd()
->motd()
)
- Former
v2.0.0¶
Breaking Changes¶
platform-paper
has been removed. It used the same code asplatform-spigot
and was therefore considered duplicate code and useless.core
has been removed. TheCachedPlayer
is no longer needed in the platform-specific APIs.
Added¶
PreServerListSetEvent
to the different platform-specific APIs.- Called before AdvancedServerList alters the server list.
- Allows to override the
ProfileEntry
used or even cancel the event.
ProfileEntry
- Used for setting the different values of the server list.
- Own instances can be made using the nested
Builder
class. - Has methods to create a Builder instance from itself, or make a copy from another ProfileEntry-instance.
Changed¶
- Converted
GenericPlayer
,GenericServer
,BungeePlayer
,SpigotPlayer
andVelocityPlayer
into interfaces.GenericPlayer
no longer hasgetVersion()
,hasPlayedBefore()
,isBanned()
andisWhitelisted()
. They have been moved toVelocityPlayer
(OnlygetVersion()
) andSpigotPlayer
respectively.
- Converted
NullBool
from a class to an enum.- Contains
TRUE
,FALSE
andNOT_SET
. isNull()
is nowisNotSet()
.
- Contains
Removed¶
UnsupportedAPIAccessException
as it is no longer used in the API itself.
v1.0.0¶
Added¶
AdvancedServerListAPI
- Main class used to add your own
PlaceholderProvider
instances.
- Main class used to add your own
PlaceholderProvider
- Abstract class used to add your own placeholders to parse in AdvancedServerList.