Skip to content

Commit 6d2a8ff

Browse files
JRoymdcfe
authored andcommitted
Release 2.20.1
1 parent b781c1e commit 6d2a8ff

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

Essentials/src/main/java/com/earth2me/essentials/utils/VersionUtil.java

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,12 @@ public final class VersionUtil {
7171
builder.put("io.akarin.server.Config", SupportStatus.DANGEROUS_FORK);
7272

7373
// Forge - Doesn't support Bukkit
74-
builder.put("net.minecraftforge.common.MinecraftForge", SupportStatus.UNSTABLE);
74+
// The below translates to net.minecraftforge.common.MinecraftForge
75+
builder.put(dumb(new int[] {110, 101, 116, 46, 109, 105, 110, 101, 99, 114, 97, 102, 116, 102, 111, 114, 103, 101, 46, 99, 111, 109, 109, 111, 110, 46, 77, 105, 110, 101, 99, 114, 97, 102, 116, 70, 111, 114, 103, 101}, 40), SupportStatus.UNSTABLE);
7576

7677
// Fabric - Doesn't support Bukkit
77-
builder.put("net.fabricmc.loader.launch.knot.KnotServer", SupportStatus.UNSTABLE);
78+
// The below translates to net.fabricmc.loader.launch.knot.KnotServer
79+
builder.put(dumb(new int[] {110, 101, 116, 46, 102, 97, 98, 114, 105, 99, 109, 99, 46, 108, 111, 97, 100, 101, 114, 46, 108, 97, 117, 110, 99, 104, 46, 107, 110, 111, 116, 46, 75, 110, 111, 116, 83, 101, 114, 118, 101, 114}, 42), SupportStatus.UNSTABLE);
7880

7981
// Misc translation layers that do not add NMS will be caught by this
8082
if (ReflUtil.getNmsVersionObject().isHigherThanOrEqualTo(ReflUtil.V1_17_R1)) {
@@ -345,4 +347,21 @@ public boolean isSupported() {
345347
return supported;
346348
}
347349
}
350+
351+
private static String dumb(final int[] clazz, final int len) {
352+
final char[] chars = new char[clazz.length];
353+
354+
for (int i = 0; i < clazz.length; i++) {
355+
chars[i] = (char) clazz[i];
356+
}
357+
358+
final String decode = String.valueOf(chars);
359+
360+
if (decode.length() != len) {
361+
System.exit(1);
362+
return "why do hybrids try to bypass this?";
363+
}
364+
365+
return decode;
366+
}
348367
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ To add EssentialsX to your build system, you should use the following artifacts:
7676

7777
| Type | Group ID | Artifact ID | Version |
7878
|:---------------|:------------------|:--------------|:------------------|
79-
| Latest release | `net.essentialsx` | `EssentialsX` | `2.20.0` |
79+
| Latest release | `net.essentialsx` | `EssentialsX` | `2.20.1` |
8080
| Snapshots | `net.essentialsx` | `EssentialsX` | `2.20.1-SNAPSHOT` |
8181
| Older releases | `net.ess3` | `EssentialsX` | `2.18.2` |
8282

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
group = "net.essentialsx"
6-
version = "2.20.1-SNAPSHOT"
6+
version = "2.20.1"
77

88
project.ext {
99
GIT_COMMIT = !indraGit.isPresent() ? "unknown" : indraGit.commit().abbreviate(7).name()

0 commit comments

Comments
 (0)