@Override
    public void onPacketSending(PacketEvent event) {
        switch (event.getPacketID()) {
            case 0x03:
                PacketContainer packet = event.getPacket();
                String message = packet.getSpecificModifier(String.class).read(0);

                message = (PerPlayerChatFilter.getInstance().censoredForPlayer(event.getPlayer()))
                        ? CensorUtil.censorString(event.getPlayer(), message) : message;

                packet.getSpecificModifier(String.class).write(0, message);
                break;
        }
    }