diff --git a/docs/Config-File.md b/docs/Config-File.md index d57ba49..a6955c5 100644 --- a/docs/Config-File.md +++ b/docs/Config-File.md @@ -47,7 +47,7 @@ papi_cache_time: 30000 enable_miniplaceholders_hook: true # Whether to sort players in the TAB list. sort_players: true -# Ordered list of elements by which players should be sorted. (ROLE_WEIGHT, ROLE_NAME and SERVER are supported) +# Ordered list of elements by which players should be sorted. (ROLE_WEIGHT, ROLE_NAME and SERVER_NAME are supported) sort_players_by: - ROLE_WEIGHT - ROLE_NAME diff --git a/src/main/java/net/william278/velocitab/config/Settings.java b/src/main/java/net/william278/velocitab/config/Settings.java index 2acb4ea..93527af 100644 --- a/src/main/java/net/william278/velocitab/config/Settings.java +++ b/src/main/java/net/william278/velocitab/config/Settings.java @@ -46,12 +46,15 @@ public class Settings { private boolean checkForUpdates = true; @YamlKey("headers") - @YamlComment("Header(s) to display above the TAB list for each server group.\nList multiple headers and set update_rate to the number of ticks between frames for basic animations") + @YamlComment("Header(s) to display above the TAB list for each server group." + + "\nList multiple headers and set update_rate to the number of ticks between frames for basic animations") private Map> headers = Map.of("default", List.of("&rainbow&Running Velocitab by William278")); @YamlKey("footers") @YamlComment("Footer(s) to display below the TAB list for each server group, same as headers.") - private Map> footers = Map.of("default", List.of("[There are currently %players_online%/%max_players_online% players online](gray)")); + private Map> footers = Map.of( + "default", + List.of("[There are currently %players_online%/%max_players_online% players online](gray)")); @YamlKey("formats") private Map formats = Map.of("default", "&7[%server%] &f%prefix%%username%"); @@ -68,7 +71,8 @@ public class Settings { @Getter @YamlKey("fallback_enabled") - @YamlComment("All servers which are not in other groups will be put in the fallback group.\n\"false\" will exclude them from Velocitab.") + @YamlComment("All servers which are not in other groups will be put in the fallback group.\n" + + "\"false\" will exclude them from Velocitab.") private boolean fallbackEnabled = true; @Getter @@ -108,7 +112,8 @@ public class Settings { private boolean sortPlayers = true; @YamlKey("sort_players_by") - @YamlComment("Ordered list of elements by which players should be sorted. (ROLE_WEIGHT, ROLE_NAME and SERVER are supported)") + @YamlComment("Ordered list of elements by which players should be sorted. " + + "(ROLE_WEIGHT, ROLE_NAME and SERVER_NAME are supported)") private List sortPlayersBy = List.of( TabPlayer.SortableElement.ROLE_WEIGHT.name(), TabPlayer.SortableElement.ROLE_NAME.name()