[FIX] ClassCastException

This commit is contained in:
Gravit 2020-03-23 04:11:51 +07:00
parent 00478527e5
commit 69bd5f3c66
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -19,6 +19,7 @@ public void execute(ChannelHandlerContext ctx, Client client) throws Exception {
GetSecureLevelInfoRequestEvent response = new GetSecureLevelInfoRequestEvent(null);
response.enabled = false;
sendResult(response);
return;
}
SecureProtectHandler secureProtectHandler = (SecureProtectHandler) server.config.protectHandler;
if(!secureProtectHandler.allowGetSecureLevelInfo(client))