1
0
Fork
You've already forked asl-api
0
  • v4.1.1 bb6d2580d8

    Andre601 released this 2025年04月28日 22:01:31 +02:00 | 3 commits to master since this release

    This is a small update that fixes the builder() method of ProfileEntry not setting the hidePlayersHover value for the builder.
    In addition is jspecify annotations now used to mark Nullable and NonNull objects, methods, etc.

    Downloads
  • v4.1.0 7d57547b94

    Andre601 released this 2025年01月05日 17:18:11 +01:00 | 6 commits to master since this release

    This update adds a new option to the ProfileEntry called hidePlayersHoverEnabled.
    It accepts a NullBool and when set to true, will make AdvancedServerList hide the player list you can see on hovering the player count.

    Downloads
  • v4.0.0 61c7ac9489

    Andre601 released this 2024年09月22日 15:39:05 +02:00 | 18 commits to master since this release

    This is a breaking release for multiple reasons:

    • All the existing Integer options have been changed to use Strings. This is to allow ASL to parse placeholders in a future release.
    • All deprecated methods in the ProfileEntry.Builder class have been removed.

    New options called onlinePlayersEnabled and onlinePlayersCount have been added. These set the online count that should be displayed.

    Downloads
  • v3.3.0 435eab5a47

    Andre601 released this 2024年03月14日 13:40:41 +01:00 | 23 commits to master since this release

    This version adds a PostServerListSetEvent to the different platform Modules.

    It's purpose is to act as an indicator for when AdvancedServerList is "done" with handling the event. It also provides the ProfileEntry instance that was used during the event.

    Downloads
  • v3.2.1 157963820c

    Andre601 released this 2024年03月01日 17:35:14 +01:00 | 27 commits to master since this release

    This is a small change that only removes the use of ${api.version} placeholders in the pom.xml files for the dependencies, but also APIs.

    Downloads
  • v3.2.0 dbd4c58c14

    Andre601 released this 2024年03月01日 17:02:25 +01:00 | 28 commits to master since this release

    The setters in the ProfileEntry Builder have been renamed to be more consistent with the method naming of the ProfileEntry itself.
    This means that instead of Builder#setFavicon(String) you now have Builder#favicon(String).

    The old methods still exist but have been marked as deprecated and for removal. This will only happen on a v4 release tho, which there is no reason for it yet. It's still recommended to switch tho.

    Downloads
  • v3.1.0 873d949245

    Andre601 released this 2023年09月19日 20:46:09 +02:00 | 56 commits to master since this release

    Added

    • New getters in ProfileEntry:
      • maxPlayersEnabled() - Returns the value for playerCount -> maxPlayers -> enabled as NullBool
      • maxPlayersCount() - Returns the value of playerCount -> maxPlayers -> amount as nullable Integer
    • 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 deprecated setExtraPlayerCount(Integer) method.

    Deprecated

    • setExtraPlayerEnabled(Integer) in ProfileEntry.Builder - Typo in method name.
    Downloads
  • v3.0.0 4a3ec938dd

    Andre601 released this 2023年06月11日 20:42:56 +02:00 | 60 commits to master since this release

    This update brings some breaking changes, but also some new additions.

    Breaking Changes

    • Packages for the different platform-x APIs have been renamed from ch.andre601.advancedserverlist.<platform> to ch.andre601.advancedserverlist.api.<platform>
    • platform-spigot was removed and instead a platform-bukkit API has been made.

    Added

    • GenericServer now has platform-specific extensions in their respective platform API, providing new getters to use
      • BukkitServer - Available on platform-bukkit. Provides a getWorlds() method that returns a Map<String, World> of all loaded worlds.
      • BungeeProxy - Available on platform-bungeecord. Provides a getServer() method that returns a Map<String, ServerInfo> of all registered Servers on the proxy.
      • VelocityProxy - Available on platform-velocity. Provides a getServer() method that returns a Map<String, RegisteredServer> of all registered Servers on the proxy.

    Removed

    • All deprecated methods in the ProfileEntry class have been removed.
    Downloads
  • v2.1.0 cbf52b6d80

    Andre601 released this 2023年03月29日 18:24:45 +02:00 | 68 commits to master since this release

    The ProfileEntry class has been turned into a record. This brings one important change, which is that the old getX methods have been replaced with their new x methods.

    As an example:

    • getMotd() is now motd()
    • getPlayerCountText() is now playerCountText()
    • etc.

    To keep backwards compatability are the old getters still available, but deprecated and planned for removal in a future minor or major version (patch updates won't have them removed)

    Downloads
  • v2.0.0 cacacb5286

    Andre601 released this 2023年02月01日 15:09:51 +01:00 | 72 commits to master since this release

    Added PreServerListSetEvent

    This event is accessible through one of the platform APIs and is called before AdvancedServerList tries to alter the Server list.
    It can be used to override the used ProfileEntry (Read more below) or even cancel the event resulting in no changes being made.

    Added ProfileEntry

    The ProfileEntry has been moved from the core module to the API. It is used to hold the different settings configured in a server list profile. You can make your own using the nested Builder class, create a Builder instance from an existing entry by using getBuilder() or just make a copy of a ProfileEntry using copy()

    Added NullBool

    The NullBool enum is used to set a boolean option in the ProfileEntry. It can be either TRUE, FALSE or NOT_SET if the retrieved value is not present or null.

    It also has a method getOrDefault(boolean def) that returns the boolean value associated with the state used, or def if NOT_SET is used.

    Changed classes to interfaces

    Some classes have been changed to interfaces to make them a bit more clean.

    Affected classes are:

    • GenericPlayer (api)
    • GenericServer (api)
    • BungeePlayer (platform-bungee)
    • SpigotPlayer (platform-spigot)
    • VelocityPlayer (platform-velocity)

    [BREAKING] Removed modules

    The core module has been removed alongside the platfrom-paper one. Later one was removed since it didn't have any Paper specific features and was therefore not useful and only duplicated code.

    [BREAKING] Moved GenericPlayer methods

    The GenericPlayer interface now only has getName(), getProtocol() and getUUID() present. The other methods have been moved to their respective, platform-specific player instance:

    • SpigotPlayer
      • hasPlayedBefore()
      • isBanned()
      • isWhitelisted()
    • VelocityPlayer
      • getVersion()
    Downloads