From 0a95af5dc1a0c6106edea718b87ddadca05201a3 Mon Sep 17 00:00:00 2001 From: NayXegp Date: Sun, 15 Jul 2018 11:58:10 +0200 Subject: [PATCH] #2464: Improve information about missing packet IDs --- protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java index 76c2bea01..28a1fea0c 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/Protocol.java @@ -461,7 +461,7 @@ public enum Protocol { throw new BadPacketException( "Unsupported protocol version" ); } - Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet " + packet ); + Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet %s in phase %s with direction %s", packet, protocolPhase, direction ); return protocolData.packetMap.get( packet ); }