Changelog¶
This page lists the recent changes made towards the AdvancedServerListAPI.
They are ordered newest to oldest.
v4.1.0¶
Added¶
- New setter method added to
ProfileEntry.Builderclass:
v4.0.0¶
Breaking Changes¶
- Changed
extraPlayersCount()andmaxPlayersCount()from using an Integer to using a String instead.- This also affects their corresponding
ProfileEntry.Buildermethods.
- This also affects their corresponding
- Removed all previously deprecated methods.
Added¶
- New setter methods added to
ProfileEntry.Builderclass:
v3.3.0¶
Added¶
- Added
PostServerListSetEventto the different platform APIs.- Fired after AdvancedServerList is done with handling the PingEvent.
- Allows to retrieve the
ProfileEntryused 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.Builderclass, 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
vprefix:<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.Builderdeprecated 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 -> enabledasNullBoolmaxPlayersCount()- Returns the value ofplayerCount -> maxPlayers -> amountas 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-spigotAPI 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
GenericServerinstances 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 theProfileEntryrecord
v2.1.0¶
Changed¶
- Turned
ProfileEntryclass 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-paperhas been removed. It used the same code asplatform-spigotand was therefore considered duplicate code and useless.corehas been removed. TheCachedPlayeris no longer needed in the platform-specific APIs.
Added¶
PreServerListSetEventto the different platform-specific APIs.- Called before AdvancedServerList alters the server list.
- Allows to override the
ProfileEntryused or even cancel the event.
ProfileEntry- Used for setting the different values of the server list.
- Own instances can be made using the nested
Builderclass. - Has methods to create a Builder instance from itself, or make a copy from another ProfileEntry-instance.
Changed¶
- Converted
GenericPlayer,GenericServer,BungeePlayer,SpigotPlayerandVelocityPlayerinto interfaces.GenericPlayerno longer hasgetVersion(),hasPlayedBefore(),isBanned()andisWhitelisted(). They have been moved toVelocityPlayer(OnlygetVersion()) andSpigotPlayerrespectively.
- Converted
NullBoolfrom a class to an enum.- Contains
TRUE,FALSEandNOT_SET. isNull()is nowisNotSet().
- Contains
Removed¶
UnsupportedAPIAccessExceptionas it is no longer used in the API itself.
v1.0.0¶
Added¶
AdvancedServerListAPI- Main class used to add your own
PlaceholderProviderinstances.
- Main class used to add your own
PlaceholderProvider- Abstract class used to add your own placeholders to parse in AdvancedServerList.