2024-01-16 22:09:46 +01:00
This page contains configuration file references for Velocitab.
The config file is located in `/plugins/velocitab/config.yml` and the tab groups file is located in `/plugins/velocitab/tab_groups.yml`
2023-04-21 14:57:24 +02:00
## Example config
< details >
< summary > config.yml< / summary >
```yaml
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Velocitab Config ┃
# ┃ Developed by William278 ┃
# ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
2024-01-16 22:09:46 +01:00
# ┣╸ Information: https://william278.net/project/velocitab
# ┗╸ Documentation: https://william278.net/docs/velocitab
# Check for updates on startup
check_for_updates: true
2023-11-09 16:27:16 +01:00
# Whether to remove nametag from players' heads if the nametag associated with their server group is empty.
2024-01-16 22:09:46 +01:00
remove_nametags: true
2024-03-11 19:43:34 +01:00
# Whether to disable header and footer if they are empty and let backend servers handle them.
disable_header_footer_if_empty: true
2023-04-21 14:57:24 +02:00
# Which text formatter to use (MINEDOWN, MINIMESSAGE, or LEGACY)
2024-01-16 22:09:46 +01:00
formatter: MINEDOWN
2023-04-21 14:57:24 +02:00
# All servers which are not in other groups will be put in the fallback group.
# "false" will exclude them from Velocitab.
fallback_enabled: true
# The formats to use for the fallback group.
fallback_group: default
2024-03-30 00:25:38 +01:00
# Whether to show all players from all groups in the TAB list.
show_all_players_from_all_groups: false
2023-04-21 14:57:24 +02:00
# Define custom names to be shown in the TAB list for specific server names.
# If no custom display name is provided for a server, its original name will be used.
server_display_names:
very-long-server-name: VLSN
2023-06-15 22:45:58 +02:00
# Whether to enable the PAPIProxyBridge hook for PAPI support
2023-04-21 14:57:24 +02:00
enable_papi_hook: true
2023-06-15 22:45:58 +02:00
# How long in seconds to cache PAPI placeholders for, in milliseconds. (0 to disable)
2024-03-11 19:43:34 +01:00
papi_cache_time: 30000
2023-04-21 14:57:24 +02:00
# If you are using MINIMESSAGE formatting, enable this to support MiniPlaceholders in formatting.
2024-01-16 22:09:46 +01:00
enable_mini_placeholders_hook: true
# Whether to send scoreboard teams packets. Required for player list sorting and nametag formatting.
# Turn this off if you're using scoreboard teams on backend servers.
send_scoreboard_packets: true
2024-03-11 19:43:34 +01:00
# If built-in placeholders return a blank string, fallback to Placeholder API equivalents.
# For example, if %prefix% returns a blank string, use %luckperms_prefix%. Requires PAPIProxyBridge.
fallback_to_papi_if_placeholder_blank: false
2023-04-21 14:57:24 +02:00
# Whether to sort players in the TAB list.
sort_players: true
2024-01-16 22:09:46 +01:00
# Remove gamemode spectator effect for other players in the TAB list.
remove_spectator_effect: false
2024-03-11 19:43:34 +01:00
# Whether to enable the Plugin Message API (allows backend plugins to perform certain operations)
enable_plugin_message_api: true
2024-06-18 23:42:50 +02:00
# A list of URLs that will be sent to display on player pause menus (Minecraft 1.21+ clients only).
# • Labels can be fully custom or built-in (one of 'bug_report', 'community_guidelines', 'support', 'status',
# 'feedback', 'community', 'website', 'forums', 'news', or 'announcements').
# • If you supply a url with a 'bug_report' label, it will be shown if the player is disconnected.
# • Specify a set of server groups each URL should be sent on. Use '*' to show a URL to all groups.
server_links:
- label: '& #00fb9a& About Velocitab'
url: 'https://william278.net/project/velocitab'
groups:
- '*'
2024-01-16 22:09:46 +01:00
```
< / details >
## Example tab groups
< details >
< summary > tab_groups.yml< / summary >
```yaml
# ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
# ┃ Velocitab TabGroups ┃
# ┃ Developed by William278 ┃
# ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
# ┣╸ Information: https://william278.net/project/velocitab
# ┗╸ Documentation: https://william278.net/docs/velocitab
groups:
- name: default
headers:
- '& rainbow& Running Velocitab by William278'
footers:
- '[There are currently %players_online%/%max_players_online% players online](gray)'
format: '& 7[%server%] & f%prefix%%username%'
nametag:
prefix: '& f%prefix%'
suffix: '& f%suffix%'
servers:
2024-03-14 23:08:02 +01:00
- ^lobby[^ ]*
2024-01-16 22:09:46 +01:00
- survival
- creative
- minigames
- skyblock
- prison
sorting_placeholders:
- '%role_weight%'
- '%username_lower%'
2024-03-14 23:08:02 +01:00
collisions: false
2024-01-16 22:09:46 +01:00
header_footer_update_rate: 1000
placeholder_update_rate: 1000
2024-03-14 23:08:02 +01:00
only_list_players_in_same_server: false
2023-04-21 14:57:24 +02:00
```
< / details >
## Details
### Server Groups
2023-04-21 16:04:03 +02:00
Which formatting and the header/footer to use for a player's TAB list is determined by the group of servers they are currently connected to. See [[Server Groups]] for more information.
2023-04-21 14:57:24 +02:00
### Formatting
Velocitab supports the full range of modern color formatting, including RGB colors and gradients, through either MineDown or MiniMessage syntax. See [[Formatting]] for more information.
2023-10-12 12:44:27 +02:00
## Nametags
As well as updating the text in the TAB menu, Velocitab supports updating player nametags (the text displayed above their heads). See [[Nametags]] for more information.
2023-04-21 14:57:24 +02:00
### Animations
Velocitab supports basic header and footer animations by adding multiple frames of animation and setting the update rate to a value greater than 0.
### Placeholders
2024-06-18 23:42:50 +02:00
You can use various placeholders that will be replaced with values (for example, `%username%` ) in your config. Support for PlaceholderAPI is also available through [a bridge library plugin ](https://modrinth.com/plugin/papiproxybridge ), as is the component-based MiniPlaceholders for users of that plugin with the MiniMessage formatter. See [[Placeholders]] for more information.
2024-06-29 14:32:29 +02:00
### YAML MultiLine Syntax
In order to have a multi-line string in YAML, you can use the `|-` or `|` syntax. The `|-` syntax will remove last newline character, while the `|` syntax will keep it.
You can also use `\n` to add a newline character in a string.
# Example 1
```yaml
foo: |-
bar 1
bar 2
bar 3
```
is equivalent to
```yaml
foo: "bar 1\nbar 2\nbar 3"
```
# Example 2
```yaml
foo: |
bar 1
bar 2
bar 3
```
is equivalent to
```yaml
foo: "bar 1\nbar 2\nbar 3\n"
```
2024-06-18 23:42:50 +02:00
### Server Links
For Minecraft 1.21+ clients, Velocitab supports specifying a list of URLs that will be sent to display in the player pause menu. See [[Server Links]] for more information.