# Simple Voice Chat — server config (1.12.2 backport).
# Reference: https://modrepo.de/minecraft/voicechat/wiki
# Bind to a fixed UDP port so we can publish a single Pelican port mapping.
# This file lands in <world>/serverconfig/ on first boot.

# UDP port for voice chat (default: -1 = use server port). We pin to 24454 to map cleanly through Pelican.
port=24454

# Bind address. Empty = same as MC server bind. Set explicitly only if multi-NIC.
bind_address=

# Maximum voice distance in blocks. [default: 48]
voice_chat_distance=48

# Codec — opus VOIP is the default and only sensible value for vanilla MC range. [default: VOIP]
codec=VOIP

# Maximum voice chat connections. -1 = same as MC max-players. [default: -1]
max_voice_chat_connections=-1

# Voice chat keep-alive in ms. [default: 1000]
keep_alive=1000

# Allow recording (server side). [default: true]
allow_recording=true

# Spectators can talk to players (broadcast). [default: false]
spectator_interaction=false

# Spectators can interact with each other in voice chat. [default: false]
spectator_player_possession=false

# Force voice chat (kick clients without the mod). [default: false]
force_voice_chat=false

# Group voice chat enabled. [default: true]
enable_groups=true

# Voice host (override). Empty = announce server's MC address. Set if behind reverse-proxy NAT.
voice_host=

# Allow proximity-based pings to be heard (LineOfSight). [default: true]
broadcast_range=-1

# Should the players be allowed to use the simulated 3D positional audio (HRTF)?
allow_pings=true
