This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve config and remove {playerName}
- Loading branch information
Showing
7 changed files
with
78 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
core/src/main/java/ch/andre601/advancedserverlist/core/profiles/ServerListProfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,45 @@ | ||
# | ||
# The priority of this profile. Higher number equals higher priority. | ||
# Set the priority of this profile. | ||
# Higher number = Higher priority. | ||
# | ||
# Read more: https://github.com/Andre601/AdvancedServerList/wiki/Profiles#priority | ||
# | ||
priority: 0 | ||
|
||
# | ||
# Allows you to set a condition for this profile. | ||
# If the condition evaluates to true will it be displayed, given that no other profile with higher priority is available. | ||
# | ||
# It is recommended to keep a profile with a low priority and no condition set. | ||
# | ||
# The following placeholders can be used: | ||
# - {playerVersion} to replace with the Player's Client version (Protocol version, NOT MC version such as 1.19!) | ||
# - {playerName} to replace with the Player's name. | ||
# | ||
# The following operators are available: | ||
# - < Returns true if the left value is less than the right value. | ||
# When the provided values are NOT numbers will it simply compare the lengths of each String. | ||
# - <= Returns true if the left value is less than OR equal to the right value. | ||
# When the provided values are NOT numbers will it simply compare the lengths of each String. | ||
# - = Returns true if the left value is equal to the right value. | ||
# - != Returns true if the left value is NOT equal to the right value. | ||
# - > Returns true if the left value is larger than the right value. | ||
# When the provided values are NOT numbers will it simply compare the lengths of each String. | ||
# - >= Returns true if the left value is larger than OR equal to the right value. | ||
# When the provided values are NOT numbers will it simply compare the lengths of each String | ||
# Set conditions that needs to be met. | ||
# Only when all conditions return true will the profile be shown (Given no profile with higher priority is used). | ||
# | ||
# Due to current limitations can you only use one operator within a condition. This may get changed in the future. | ||
# Read more: https://github.com/Andre601/AdvancedServerList/wiki/Profiles#conditions | ||
# | ||
#condition: '{playerVersion} < 759' | ||
#conditions: | ||
# - '{playerVersion} < 759' | ||
|
||
# | ||
# The MOTD to display. | ||
# Remove this option or set it to "motd: []" for no changes. | ||
# Set the MOTD that should be displayed. | ||
# Can be removed or set to "motd: []" to not alter the MOTD. | ||
# | ||
# Supports 24-Bit HEX colors. | ||
# Read more: https://github.com/Andre601/AdvancedServerList/wiki/Profiles#motd | ||
# | ||
motd: | ||
- 'Line 1' | ||
- 'Line 2' | ||
|
||
# | ||
# The text to display when hovering over the "<online>/<total>" player count. | ||
# Remove or set this to "players: []" for no changes. | ||
# Set the hover text that usually displays online players. | ||
# Can be removed or set to "players: []" to not alter the player list. | ||
# | ||
# Only supports basic colors. | ||
# Read more: https://github.com/Andre601/AdvancedServerList/wiki/Profiles#players | ||
# | ||
players: | ||
- 'Line 1' | ||
- 'Line 2' | ||
- 'Line 3' | ||
|
||
# | ||
# The text that usually shows the current and total amount of players. | ||
# Remove this option or set it to "playerCount: ''" for no changes. | ||
# Set the text that usually shows online players and max that can join. | ||
# Can be removed or set to "playerCount: ''" to not alter the player count text. | ||
# | ||
# Only supports basic colors. | ||
# Read more: https://github.com/Andre601/AdvancedServerList/wiki/Profiles#playercount | ||
# | ||
playerCount: 'Text' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters