-
-
Notifications
You must be signed in to change notification settings - Fork 3
Examples
This page lists some examples you may want to use for your proxy or server.
Feel free to suggest additional examples on my Discord Server in the #advancedserverlist
channel.
Some examples about version-related things.
You may want to display a separate MOTD or text for incompatible client versions.
This example here shows a separate MOTD and player count message for when the player's client version is older than what the server supports.
priority: 1
# Display this profile, if the version of the player is below 760 (1.19.1)
conditions:
- '${player protocol} < 760'
motds:
- |-
<red>You are using an outdated client!
<red>Please update to 1.19.1 to join.
playerCount:
text: '<red>Outdated Client!'
This profile would display a MOTD without HEX colours if the player's version is below 735 (1.16).
priority: 1
# Display this profile, if the version of the player is below 735 (1.16)
conditions:
- '${player protocol} < 735'
motds:
- |-
<grey>Welcome to <aqua>YourServer.com</aqua>!
<grey>Enjoy your stay.
Examples that can be used with the Spigot or PaperMC version.
Displays a separate profile for when the player has been banned from the server.
priority: 1
conditions:
- '${player isBanned} = true'
motds:
- |-
<red>You have been <bold>BANNED</bold>!
<red>Go away.
# Don't show the player count to the banned player.
playerCount:
hidePlayers: true
Some misc examples.
Display a different profile when the playing pings a specific domain/IP.
priority: 1
conditions:
- '${server host} = other.example.com'
motds:
- |-
<grey>Please use <aqua>mc.example.com
<grey>to join our server.
Display a different profile, if the player pinging the server is "known" by AdvancedServerList (Has joined before with the same IP).
priority: 1
conditions:
- `${player name} != Anonymous` # "Anonymous" should be replaced with whatever you use in 'unknown_player'
motds:
- |-
<grey>Hello there <aqua>${player name}</aqua>!
<grey>It's nice to see you again.
playerCount:
hover:
- '<grey>Welcome back <aqua>${player name}</aqua>!'
- '<grey>'
- '<grey>Come and join <aqua>${server playersOnline}'
- '<aqua>other players</aqua> <grey>on the Server!'