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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user