-
Andre601 released this
2025年04月28日 22:01:31 +02:00 | 3 commits to master since this releaseThis is a small update that fixes the
builder()method ofProfileEntrynot setting thehidePlayersHovervalue for the builder.
In addition is jspecify annotations now used to mark Nullable and NonNull objects, methods, etc.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
Andre601 released this
2025年01月05日 17:18:11 +01:00 | 6 commits to master since this releaseThis update adds a new option to the ProfileEntry called
hidePlayersHoverEnabled.
It accepts aNullBooland when set to true, will make AdvancedServerList hide the player list you can see on hovering the player count.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
Andre601 released this
2024年09月22日 15:39:05 +02:00 | 18 commits to master since this releaseThis 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
onlinePlayersEnabledandonlinePlayersCounthave been added. These set the online count that should be displayed.Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Andre601 released this
2024年03月14日 13:40:41 +01:00 | 23 commits to master since this releaseThis version adds a
PostServerListSetEventto 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
Andre601 released this
2024年03月01日 17:35:14 +01:00 | 27 commits to master since this releaseThis 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
Andre601 released this
2024年03月01日 17:02:25 +01:00 | 28 commits to master since this releaseThe setters in the ProfileEntry Builder have been renamed to be more consistent with the method naming of the ProfileEntry itself.
This means that instead ofBuilder#setFavicon(String)you now haveBuilder#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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
Source code (ZIP)
-
Andre601 released this
2023年09月19日 20:46:09 +02:00 | 56 commits to master since this releaseAdded
- 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.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- New getters in
-
Andre601 released this
2023年06月11日 20:42:56 +02:00 | 60 commits to master since this releaseThis update brings some breaking changes, but also some new additions.
Breaking Changes
- Packages for the different
platform-xAPIs have been renamed fromch.andre601.advancedserverlist.<platform>toch.andre601.advancedserverlist.api.<platform> platform-spigotwas removed and instead aplatform-bukkitAPI has been made.
Added
GenericServernow has platform-specific extensions in their respective platform API, providing new getters to useBukkitServer- Available onplatform-bukkit. Provides agetWorlds()method that returns aMap<String, World>of all loaded worlds.BungeeProxy- Available onplatform-bungeecord. Provides agetServer()method that returns aMap<String, ServerInfo>of all registered Servers on the proxy.VelocityProxy- Available onplatform-velocity. Provides agetServer()method that returns aMap<String, RegisteredServer>of all registered Servers on the proxy.
Removed
- All deprecated methods in the
ProfileEntryclass have been removed.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Packages for the different
-
Andre601 released this
2023年03月29日 18:24:45 +02:00 | 68 commits to master since this releaseThe
ProfileEntryclass has been turned into arecord. This brings one important change, which is that the oldgetXmethods have been replaced with their newxmethods.As an example:
getMotd()is nowmotd()getPlayerCountText()is nowplayerCountText()- 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v2.0.0: Custom event support Stable
Andre601 released this
2023年02月01日 15:09:51 +01:00 | 72 commits to master since this releaseAdded 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
ProfileEntryhas 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 nestedBuilderclass, create a Builder instance from an existing entry by usinggetBuilder()or just make a copy of a ProfileEntry usingcopy()Added NullBool
The
NullBoolenum is used to set a boolean option in the ProfileEntry. It can be eitherTRUE,FALSEorNOT_SETif 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, ordefifNOT_SETis 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
coremodule has been removed alongside theplatfrom-paperone. 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
GenericPlayerinterface now only hasgetName(),getProtocol()andgetUUID()present. The other methods have been moved to their respective, platform-specific player instance:SpigotPlayerhasPlayedBefore()isBanned()isWhitelisted()
VelocityPlayergetVersion()
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads