Skip to content
This repository was archived by the owner on Dec 31, 2024. It is now read-only.

Commit a715996

Browse files
committed
1.20.1 support
1 parent 28cafb5 commit a715996

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@
125125
<dependency>
126126
<groupId>net.kyori</groupId>
127127
<artifactId>adventure-text-minimessage</artifactId>
128-
<version>4.11.0</version>
128+
<version>4.13.0</version>
129129
<scope>compile</scope>
130130
</dependency>
131131
<dependency>
132132
<groupId>net.kyori</groupId>
133133
<artifactId>adventure-platform-bungeecord</artifactId>
134-
<version>4.1.2</version>
134+
<version>4.3.0</version>
135135
<scope>compile</scope>
136136
</dependency>
137137
</dependencies>

src/main/java/lol/hyper/bungeeblockversion/events/JoinEvent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void onPreConnect(LoginEvent event) {
5353
String blockedMessage = bungeeBlockVersion.configHandler.configuration.getString("disconnect-message");
5454
String allowedVersions = VersionToStrings.allowedVersions(bungeeBlockVersion.configHandler.blockedVersions);
5555
if (allowedVersions == null) {
56-
blockedMessage = "<red>All versions are currently blocked from playing.</red>";
56+
blockedMessage = "<red>All versions are currently blocked from playing.";
5757
}
5858
if (blockedMessage.contains("{VERSIONS}")) {
5959
blockedMessage = blockedMessage.replace("{VERSIONS}", allowedVersions);

src/main/java/lol/hyper/bungeeblockversion/tools/VersionToStrings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public class VersionToStrings {
6565
versionMap.put(760, "1.19.2");
6666
versionMap.put(761, "1.19.3");
6767
versionMap.put(762, "1.19.4");
68-
versionMap.put(763, "1.20");
68+
versionMap.put(763, "1.20.1");
6969
}
7070

7171
/**

src/main/resources/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ versions:
3737
- 760 # this will show up as 1.19.2 because 1.19.1 and .2 share the same protocol version
3838
- 761
3939
- 762
40-
- 763
40+
- 763 # will show up as 1.20.1 because 1.20 and 1.20.1 use the same version
4141

4242
# Send this message if someone connects with a blocked version.
4343
# Use {VERSIONS} to show what versions your server uses. It will display like "1.8 to 1.16.3" or whatever.
4444
# If you don't want to use {VERSIONS}, just remove it.
45-
disconnect-message: "<red>You cannot connect with this version! We only allow version(s) {VERSIONS}.</red>"
45+
disconnect-message: "<red>You cannot connect with this version! We only allow version(s) {VERSIONS}."
4646

4747
# This will say "Player is connecting with protocol version" when someone joins.
4848
# This is off by default to not spam your console, but you can enable it for debug reasons.

0 commit comments

Comments
 (0)