1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Format the 'unsupported data version' message

This commit is contained in:
Tim203
2021-11-30 17:00:49 +01:00
parent 6e41471790
commit e7d1715d4a

View File

@@ -78,7 +78,10 @@ public abstract class CommonDataHandler extends ChannelInboundHandlerAdapter {
if (separation.headerVersion() != FloodgateCipher.VERSION) { if (separation.headerVersion() != FloodgateCipher.VERSION) {
disablePacketQueue(true); disablePacketQueue(true);
setKickMessage(Constants.UNSUPPORTED_DATA_VERSION); setKickMessage(String.format(
Constants.UNSUPPORTED_DATA_VERSION,
FloodgateCipher.VERSION, separation.headerVersion()
));
return; return;
} }