Adding ViaVersion to your Spigot Minecraft server is a great way to support cross-version compatibility, allowing players on different Minecraft versions to connect to the same server. Here’s the best way to do it:
Step-by-Step Guide to Adding ViaVersion to Spigot
1. Download Required Plugins
ViaVersion requires ViaBackwards (for older clients) and ViaRewind (for even older clients). You can get them from the official SpigotMC or Modrinth pages:
2. Install the Plugins
Download the .jar files for ViaVersion , ViaBackwards , and (optionally) ViaRewind .
Place them in your server’s plugins folder.
Restart your server to load the plugins.
3. Configure ViaVersion
After the first restart, ViaVersion will generate a config.yml file in the plugins/ViaVersion folder. You can edit it to:
Enable/Disable specific versions.
Set default protocols (e.g., force all players to use 1.16+).
Adjust packet compression (useful for performance).
Example config.yml tweaks:
yaml Copy code
# Force all players to use 1.16+ (recommended for performance)
default-protocol: 1.16
4. Verify Installation
Check the server console for any errors.
Connect with different Minecraft versions to ensure compatibility.
5. (Optional) Use ProtocolSupport for BungeeCord
If you're using BungeeCord , you may also need ProtocolSupport to handle version differences between proxies and servers.
Troubleshooting
Errors on startup? Ensure all plugins are up-to-date.
Players can't connect? Check config.yml for version restrictions.
Performance issues? Adjust packet compression settings.
Final Notes
ViaVersion works best when all players are on 1.8+ .
For 1.7.10 or older , you may need ProtocolSupport or LegacySupport .
Always backup your server before making changes.
That’s it! Your Spigot server should now support multiple Minecraft versions seamlessly. 🚀