Save server version

This commit is contained in:
md_5 2018-10-02 20:52:57 +10:00
parent 7a2f486768
commit c8f68670f5

View file

@ -28,7 +28,15 @@
nbttagcompound.setLong("RandomSeed", this.e);
nbttagcompound.setString("generatorName", this.f.b());
nbttagcompound.setInt("generatorVersion", this.f.getVersion());
@@ -478,6 +485,16 @@
@@ -389,6 +396,7 @@
nbttagcompound.set("CustomBossEvents", this.U);
}
+ nbttagcompound.setString("Bukkit.Version", Bukkit.getName() + "/" + Bukkit.getVersion() + "/" + Bukkit.getBukkitVersion()); // CraftBukkit
}
public long getSeed() {
@@ -478,6 +486,16 @@
}
public void setThundering(boolean flag) {
@ -45,7 +53,7 @@
this.z = flag;
}
@@ -494,6 +511,16 @@
@@ -494,6 +512,16 @@
}
public void setStorm(boolean flag) {
@ -62,7 +70,7 @@
this.x = flag;
}
@@ -643,6 +670,12 @@
@@ -643,6 +671,12 @@
public void setDifficulty(EnumDifficulty enumdifficulty) {
this.G = enumdifficulty;
@ -75,7 +83,7 @@
}
public boolean isDifficultyLocked() {
@@ -724,4 +757,12 @@
@@ -724,4 +758,12 @@
public void c(@Nullable NBTTagCompound nbttagcompound) {
this.U = nbttagcompound;
}