mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Expose protocol version
This commit is contained in:
parent
273355e28c
commit
85a8224261
1 changed files with 5 additions and 0 deletions
|
@ -543,6 +543,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||||
public String getMainLevelName() {
|
public String getMainLevelName() {
|
||||||
return ((net.minecraft.server.dedicated.DedicatedServer) net.minecraft.server.MinecraftServer.getServer()).getProperties().levelName;
|
return ((net.minecraft.server.dedicated.DedicatedServer) net.minecraft.server.MinecraftServer.getServer()).getProperties().levelName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getProtocolVersion() {
|
||||||
|
return net.minecraft.SharedConstants.getCurrentVersion().getProtocolVersion();
|
||||||
|
}
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue