Skip to content

Commit 9f7a970

Browse files
committed
Add viaversion
1 parent ed036e1 commit 9f7a970

File tree

2 files changed

+120
-0
lines changed

2 files changed

+120
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN apk add --no-cache \
66

77
# We manually set the Velocity version to avoid bugs
88
ENV VELOCITY_JAR_URL "https://api.papermc.io/v2/projects/velocity/versions/3.2.0-SNAPSHOT/builds/216/downloads/velocity-3.2.0-SNAPSHOT-216.jar"
9+
ENV VIA_VERSION_JAR_URL "https://github.com/ViaVersion/ViaVersion/releases/download/4.5.1/ViaVersion-4.5.1.jar"
910

1011
RUN mkdir /app
1112
WORKDIR /app
@@ -19,6 +20,10 @@ COPY run/server-icon.png .
1920
RUN mkdir /app/plugins
2021
WORKDIR /app/plugins
2122

23+
RUN wget -O viaversion.jar $VIA_VERSION_JAR_URL
24+
COPY run/plugins/viaversion/config.yml viaversion/config.yml
25+
26+
#RUN wget -O viabackwards.jar https://github.com/ViaVersion/ViaBackwards/releases/download/4.5.1/ViaBackwards-4.5.1.jar
2227
COPY build/libs/*-all.jar velocity-core.jar
2328
# Go back to the base directory for our server
2429
WORKDIR /app

run/plugins/viaversion/config.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Thanks for downloading ViaVersion
2+
# Ensure you look through all these options
3+
# If you need help:
4+
# Discord - https://viaversion.com/discord
5+
# viaversion.com - Discussion tab
6+
# Docs - https://docs.viaversion.com/display/VIAVERSION/Configuration
7+
#
8+
#----------------------------------------------------------#
9+
# GLOBAL OPTIONS #
10+
#----------------------------------------------------------#
11+
#
12+
# Should ViaVersion check for updates?
13+
# The following option will delay the tab complete request in x ticks if greater than 0, if other tab-complete is received, the previous is cancelled
14+
1_13-tab-complete-delay: 0
15+
auto-team: true
16+
# Change the blocked disconnect message
17+
block-disconnect-msg: You are using an unsupported Minecraft version!
18+
# Block specific Minecraft protocol version numbers.
19+
# List of all Minecraft protocol versions: http://wiki.vg/Protocol_version_numbers, or use a generator: https://via.krusic22.com
20+
block-protocols: []
21+
# Easier to configure alternative to 'block-protocols'. Uses readable version strings with possible '<' and '>' prefixes.
22+
# An example to block 1.16.4, everything below 1.16, as well as everything above 1.17.1 would be: ["<1.16", "1.16.4", ">1.17.1"]
23+
# You can use both this and the block-protocols option at the same time as well.
24+
block-versions: []
25+
bossbar-anti-flicker: false
26+
bossbar-patch: true
27+
#
28+
# Caches light until chunks are unloaded to allow subsequent chunk update packets as opposed to instantly uncaching when the first chunk data is sent.
29+
# Only disable this if you know what you are doing.
30+
cache-1_17-light: true
31+
# Should we fix nbt for 1.12 and above clients in chat messages (causes invalid item)
32+
chat-nbt-fix: true
33+
#
34+
# 1.19 chat type formats used for 1.19.1+ clients.
35+
chat-types-1_19:
36+
chat.type.text: <%s> %s
37+
chat.type.announcement: '[%s] %s'
38+
commands.message.display.incoming: '%s whispers to you: %s'
39+
chat.type.team.text: '%s <%s> %s'
40+
chat.type.emote: '* %s %s'
41+
checkforupdates: true
42+
# Fix 1.9+ clients not rendering the far away chunks and improve chunk rendering when moving fast (Increases network usage and decreases client fps slightly)
43+
chunk-border-fix: false
44+
disable-1_13-auto-complete: false
45+
fix-1_14-health-nan: true
46+
fix-infested-block-breaking: true
47+
fix-low-snow-collision: false
48+
fix-non-full-blocklight: true
49+
flowerstem-when-block-above: false
50+
# Force the string -> json transform
51+
force-json-transform: false
52+
forced-use-1_17-resource-pack: false
53+
hologram-patch: false
54+
hologram-y: -0.96
55+
ignore-long-1_16-channel-names: true
56+
# Allows 1.9+ left-handedness (main hand) on 1.8 servers
57+
left-handed-handling: true
58+
# Get the world names which should be returned for each vanilla dimension
59+
map-1_16-world-names:
60+
overworld: minecraft:overworld
61+
nether: minecraft:the_nether
62+
end: minecraft:the_end
63+
max-pps: 800
64+
max-pps-kick-msg: You are sending too many packets!
65+
# Minimize the cooldown animation in 1.8 servers
66+
minimize-cooldown: true
67+
# If this setting is active, the main hand is used instead of the off hand to trigger the blocking of the player.
68+
# With the main hand the blocking starts way faster.
69+
# (Requires "show-shield-when-sword-in-hand" to be disabled)
70+
no-delay-shield-blocking: false
71+
piston-animation-patch: false
72+
#
73+
#----------------------------------------------------------#
74+
# 1.9+ CLIENTS ON 1.8 SERVERS OPTIONS #
75+
#----------------------------------------------------------#
76+
#
77+
# No collide options, these allow you to configure how collision works.
78+
# Do you want us to prevent collision?
79+
prevent-collision: true
80+
reduce-blockstorage-memory: false
81+
reload-disconnect-msg: Server reload, please rejoin!
82+
# Should we replace extended pistons to fix 1.10.1 (Only on chunk load)
83+
replace-pistons: false
84+
# What id should we replace with, default is air. (careful of players getting stuck standing on them)
85+
replacement-piston-id: 0
86+
resource-pack-1_17-prompt: ''
87+
send-supported-versions: false
88+
serverside-blockconnections: true
89+
# When enabled 1.9+ will be able to block by using shields
90+
shield-blocking: true
91+
# If this setting is active, the shield will appear immediately for 1.9+ when you hold a sword in your main hand.
92+
# The shield disappears when you switch to another item.
93+
# (Requires "shield-blocking" to be enabled)
94+
show-shield-when-sword-in-hand: false
95+
# Enable player tick simulation, this fixes eating, drinking, nether portals.
96+
simulate-pt: true
97+
suppress-conversion-warnings: false
98+
# When enabled if certain metadata can't be read we won't tell you about it
99+
suppress-metadata-errors: false
100+
team-colour-fix: true
101+
tracking-max-kick-msg: You are sending too many packets, :(
102+
tracking-max-warnings: 4
103+
tracking-period: 6
104+
tracking-warning-pps: 120
105+
truncate-1_14-books: false
106+
use-1_15-instant-respawn: false
107+
# Show the new death messages for 1.9+ on the death screen
108+
use-new-deathmessages: true
109+
# This will show the new effect indicator in the top-right corner for 1.9+ players.
110+
use-new-effect-indicator: true
111+
velocity-ping-interval: -1
112+
velocity-ping-save: false
113+
velocity-servers:
114+
default: 760
115+
vine-climb-fix: false

0 commit comments

Comments
 (0)