aegis has a mapflag capable of enforcing /effect, I tried to implement it but I failed to get the packet that is supposed to notify the client about it to do anything.
The feature consists of two packets, the one above, and the following (which works)
which receives a notification from the client when the /effect state is toggled (this one works)
Code:
// packet 0x21estruct PACKET_ZC_LESSEFFECT { /* this+0x0 */ short PacketType /* this+0x2 */ int isLess}
Code:
// packet 0x21dstruct PACKET_CZ_LESSEFFECT { /* this+0x0 */ short PacketType /* this+0x2 */ int isLess}