mirror of
https://codeberg.org/Andre601/AdvancedServerList.git
synced 2026-11-07 09:52:42 -05:00
5.7 KiB
5.7 KiB
icon
| icon |
|---|
| octicons/log-24 |
Changelog
This page lists the recent changes made towards the AdvancedServerListAPI.
They are ordered newest to oldest.
v3.1.0
:octicons-plus-circle-24:{ .changelog-added title="Added" } 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.
:octicons-zap-24:{ .changelog-breaking title="Deprecated" } Deprecated
setExtraPlayerEnabled(Integer)inProfileEntry.Builder- Typo in method name.
v3.0.0
:octicons-alert-24:{ .changelog-breaking title="Breaking Changes" } 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>
:octicons-plus-circle-24:{ .changelog-added title="Added" } 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.
:octicons-trash-24:{ .changelog-removed title="Removed" } Removed
- All previously deprecated
getX()methods from theProfileEntryrecord
v2.1.0
:octicons-pencil-24:{ .changelog-changed title="Changed" } 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
:octicons-alert-24:{ .changelog-breaking title="Breaking Changes" } 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.
:octicons-plus-circle-24:{ .changelog-added title="Added" } 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.
:octicons-pencil-24:{ .changelog-changed title="Changed" } 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
:octicons-trash-24:{ .changelog-removed title="Removed" } Removed
UnsupportedAPIAccessExceptionas it is no longer used in the API itself.
v1.0.0
:octicons-plus-circle-24:{ .changelog-added title="Added" } 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.