From 524f5d470bc90db89541b3c99c92a73a3fab3f01 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 14 Sep 2024 22:47:24 -0500 Subject: [PATCH] protocol error logging --- src/engine/net/NetMsgFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/net/NetMsgFactory.java b/src/engine/net/NetMsgFactory.java index c0faf671..b4463d3b 100644 --- a/src/engine/net/NetMsgFactory.java +++ b/src/engine/net/NetMsgFactory.java @@ -14,6 +14,7 @@ import engine.gameManager.ChatManager; import engine.net.client.ClientConnection; import engine.net.client.Protocol; import engine.net.client.msg.ErrorPopupMsg; +import engine.net.client.msg.PlaceAssetMsg; import engine.objects.PlayerCharacter; import engine.server.MBServerStatics; import org.joda.time.DateTime; @@ -96,7 +97,7 @@ public class NetMsgFactory { PlayerCharacter player = ((ClientConnection) origin).getPlayerCharacter(); if (player != null) { Logger.error("Invalid protocol msg for player " + player.getFirstName() + " : " + opcode + " lastopcode: " + origin.lastProtocol.name() + " Error Code : " + errorCode); - ErrorPopupMsg epm = new ErrorPopupMsg(16, "REPORT WHAT YOU JUST TRIED TO DO"); + PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(), 1, "Please Report What You Just Did"); } }