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.
Bit of an early christmas present for you all.
This update provides a feature some of you have been waiting for: Center support for motd
!
It also has some notable changes making it incompatible with older Paper servers.
MOTD Centering
The feature is relatively simple. Start a line with <center>
and the plugin will try to center it as good as possible using spaces.
Example:
priority: 0
motd:
- '<center><grey>This is <bold>centered</bold> Text!'
- '<aqua>And I am not!'
Result:
The text is processed before centering, meaning that placeholders will be parsed first to get the actual text-width before centering.
Important: Centering text uses specific hardcoded values and only supports a specific set of fonts. Namely:
- Max width of MOTD is set to 270.
- Spaces are set to a value of 4.
- Supported fonts are
minecraft:default
,minecraft:alt
andminecraft:uniform
Because of these factors can the centering look not quite right on specific UI scales or with specific custom fonts used by the client. Nothing I can change on my end.
plugin.yml removal
I decided to remove the plugin.yml
file from the Paper version of the Plugin.
This means that if you were using the plugin on a version that doesn't support the paper-plugin.yml
file, meaning only using the plugin.yml
, this update won't work for you anymore.
The paper-plugin.yml
was introduced (And subsequently supported by AdvancedServerList) in 1.19 builds of Paper, tho notable breaking changes regarding dependencies were introduced in later 1.19.4 builds of Paper.
To be on the safe side here will releases on Modrinth and Hangar now only list 1.20+ versions as supported.
This small update should hopefully fix an issue where a IndexOutOfBoundsException
could be raised in Conditions if only using a placeholder.
Truth be told, I'm not sure if this issue is fixed for good or not, as I wasn't really able to properly reproduce it.
But the way I understand it is this:
I had a system in place where the index (Current position in the full text) would be increased by one, if the placeholder was parsed in a condition. This had a unwanted side-effect here, where if you only used a Placeholder for the condition, it could cause the aforementioned exception. It could also happen, if the condition ended with a placeholder.
As an example, here are the indexes indicated on a condition after handling the placeholder:
# This one is fine.
${player name} != "Anonymous"
^
# This one is Out of bounds
${player isWhitelisted}
^
# This one is also Out of bounds
"Anonymous" != ${player name}
^
I really hope this issue is now fixed, as I otherwise have no idea what could be the problem.
This update adds the option to set random
as the favicon option.
Doing so will make AdvancedServerList pick a random image from its favicons folder, if any are available.
This can be useful for setups, where you want a randomized MOTD and Favicon without having to make profiles
entries for every possible combination.