Moved
The documenation has been moved and can now be found at asl.andre601.ch.
This page in particular can be found at asl.andre601.ch/api/changelog/.
Changelog¶
This page lists the recent changes made towards the AdvancedServerListAPI.
They are ordered newest to oldest.
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.