Catch PacketHandler exceptions

This commit is contained in:
libraryaddict 2015-10-24 02:17:19 +13:00
parent 5ec4203fd9
commit 2eb8b3e234

View File

@ -50,7 +50,14 @@ public class PacketHandler extends MiniPlugin
for (IPacketHandler handler : _packetHandlers.get(packetInfo.getPacket().getClass()))
{
handler.handle(packetInfo);
try
{
handler.handle(packetInfo);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
return !packetInfo.isCancelled();