mirror of
https://github.com/Samsuik/Sakura.git
synced 2025-12-29 11:49:07 +00:00
Add sake mechanics server type
This commit is contained in:
@@ -76,6 +76,7 @@ public record MinecraftMechanicsTarget(short mechanicVersion, byte serverType) {
|
||||
final byte serverType = switch (serverPart.toLowerCase(Locale.ENGLISH)) {
|
||||
case "vanilla" -> ServerType.VANILLA;
|
||||
case "spigot" -> ServerType.SPIGOT;
|
||||
case "sake" -> ServerType.SAKE;
|
||||
default -> ServerType.PAPER;
|
||||
};
|
||||
|
||||
|
||||
@@ -10,12 +10,14 @@ public final class ServerType {
|
||||
public static final byte VANILLA = 0;
|
||||
public static final byte SPIGOT = 1;
|
||||
public static final byte PAPER = 2;
|
||||
public static final byte SAKE = 32;
|
||||
|
||||
public static String name(final byte serverType) {
|
||||
return switch (serverType) {
|
||||
case 0 -> "vanilla";
|
||||
case 1 -> "spigot";
|
||||
case 2 -> "paper";
|
||||
case 33 -> "sake";
|
||||
default -> "unknown";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user