Fix logging exceptions on encryption enabling

This commit is contained in:
games647
2016-09-01 20:09:34 +02:00
parent b35d67b5c0
commit e495f70ccd

View File

@ -152,8 +152,9 @@ public class VerifyResponseTask implements Runnable {
//encrypt/decrypt following packets
//the client expects this behaviour
encryptConnectionMethod.invoke(networkManager, loginKey);
} catch (ReflectiveOperationException ex) {
disconnect(plugin.getCore().getMessage("error-kick"), false, "Couldn't enable encryption", ex);
} catch (Exception ex) {
plugin.getLogger().log(Level.SEVERE, "Couldn't enable encryption", ex);
disconnect(plugin.getCore().getMessage("error-kick"), false, "Couldn't enable encryption");
return false;
}