Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Andre_601

A highly customizable plugin to create custom Server Lists with MOTD, Favicon, Playercount and more.

Report AdvancedServerList?

Release
5.1.2

Andre_601 released AdvancedServerList version 5.1.2 on December 10, 2024

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.

Information

Published onDecember 10, 2024
Downloads47

Platforms

Paper Paper (1.20-1.21.4)
Waterfall Waterfall (1.19-1.21)
Velocity Velocity (3.2)

Dependencies

Waterfall Waterfall
Edit Plugin Dependencies: Waterfall
Velocity Velocity
Edit Plugin Dependencies: Velocity