Aquazus/D1Proxy

View on GitHub

Showing 1 of 7 total issues

Consider simplifying this complex logical expression.
Open

        if (client != null && client.isAutoJoinEnabled() && client.getCharacterId() != proxyClient.getCharacterId() && client.getGroupLeader() == proxyClient.getGroupLeader() && client.getIp().equals(proxyClient.getIp()) && packet.contains(client.getUsername())) {
            String joinPacket = "GA903" + id + ";" + id;
            Packet.builder().putBytes(joinPacket.getBytes(StandardCharsets.UTF_8)).putByte(10).putByte(0).writeAndFlush(proxyClient.getServer());
        }
Severity: Major
Found in src/main/java/fr/aquazus/d1proxy/handlers/GtHandler.java - About 40 mins to fix
Severity
Category
Status
Source
Language