geforkt von Mirrors/AxiomPaperPlugin
backport1.20.1 #6
@ -46,8 +46,10 @@ public class HelloPacketListener implements PluginMessageListener {
|
|||||||
int dataVersion = friendlyByteBuf.readVarInt();
|
int dataVersion = friendlyByteBuf.readVarInt();
|
||||||
friendlyByteBuf.readNbt(); // Discard
|
friendlyByteBuf.readNbt(); // Discard
|
||||||
|
|
||||||
if (dataVersion != SharedConstants.getCurrentVersion().getDataVersion().getVersion()) {
|
int serverDataVersion = SharedConstants.getCurrentVersion().getDataVersion().getVersion();
|
||||||
player.kick(Component.text("Axiom: Incompatible data version detected, are you using ViaVersion?"));
|
if (dataVersion != serverDataVersion) {
|
||||||
|
player.kick(Component.text("Axiom: Incompatible data version detected (client " + dataVersion +
|
||||||
|
", server " + serverDataVersion + "), are you using ViaVersion?"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren