Catch PacketHandler exceptions
This commit is contained in:
parent
5ec4203fd9
commit
2eb8b3e234
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user