This update brings three significant changes: The addition of new operands for the condition option, the move to cloud for command handling and some new commands.
Please note that I tried my best in testing these changes, but given I do not have an actual server can there be bugs and issues. Please report them to me if you encounter them!
Also, do note that the plugin now compiles against Java 21. But given there being no stats listing Java 16 should this not be an issue here. If it is for you, update your Java version please.
New operands
There are three new operands that can be used within your conditions:
|~
Starts with (Ignoring case)~|
Ends with (Ignoring case)<~
Contains (Ignoring case)
Move to cloud command framework
The plugin is now shading in and using the Cloud command framework by incendo, to have some better overall handling of commands, including improved tab completion.
The /asl help
command has also been changed. It now uses the MinecraftHelp
class from cloud to display a list of all available commands with hover and click actions. It also allows you to provide a query to search for specific commands (Has suggestions and tab completion available).
New commands
New commands have been added to further improve the handling of profiles in the plugin:
/asl profiles info <profile>
This command provides you with information regarding the selected profile. The returned tree will be a representation of the profile's options, including whether they are set or not and what value they may have. Additionally do most of these options have click actions to receive a matching /asl profiles set
command to set or reset the value accordingly.
/asl profiles set <profile> <option> [value]
This command allows you to update an option's value. What values you can set depends on the provided option (i.e. priority
only allows whole number values).
The options motd
and playercount.hover
allow you to set multiple lines by using either \n
or <newline>
in the text.
Finally can you also leave [value]
blank to reset the option to its default value, which usually is an empty String or List.
Note that the returned success response has a hover for the mentioned option that shows the old and new values you have set.
This update brings two changes to the plugin, the first being a new playerCount
option called hidePlayersHover
and the second being a small refactoring of the command usage output.
New hidePlayersHover
option
This option is part of the playerCount
option, similar to hidePlayers
.
When set to true will it remove the list of players (or custom text if hover
is used) from the player count when hovering over it.
Do note that I couldn't test this option properly, as I do not have a server with players on it to test, but it seems to work.
Do also note, that enabling this will automatically disable the hover
option.
Smaller refactoring of the Command usage text
The commands displayed when f.e. running /asl help
is now a bit more detailed in terms of hovering over it. Individual arguments will now have a hover describing their purpose.
Here are some screenshots:
This update brings basic support for SayanVanish to the BungeeCord and Velocity versions of AdvancedServerList.
What does this mean?
Should a player be vanished through this plugin will AdvancedServerList not count it for the online player count, similar to how it did this for PremiumVanish already.
Styled Log messages
The plugin now makes use of the ComponentLogger provided by Kyori Adventure, allowing to have more styled messages.
This Library was implemented into Paper around 2 years ago and into Velocity 3.2.0-SNAPSHOT. This means should you be using older versions will the plugin not function properly.
BungeeCord won't use the componentlogger and therefore won't have styled log entries.
Added printBanner
config option
The config.yml now has a printBanner
boolean option. When set to false will the plugin no longer print the "ASL" ASCI art in the console.
I personally can't see why this logo should bother you so much, but here you go if it really bothers you...
As usual should the plugin automatically create a backup and migrate the config for you.
If not present will the option default to true
.
Reduced startup messages
The number of text printed in console on startup has been reduced. Some messages were removed, while others got moved into debug, meaning they only display when debug
is enabled in the config.yml file.