Aizistral
Aizistral
Me still on Java 8 be like: "...what type of black magic that & operator thing is?.."
> Intersection types are in Java 8... Today I learned. To be honest I just never saw this & operator thing in any codebases based on Java 8, which I...
Forgive my ignorance if I am missing out on something, but isn't this achievable with `@Inject(at = @At("RETURN"), cancelable = true)` and `CallbackInfoReturnable`?
```java // This is the equivalent of the CallbackInfoReturnable method mentioned above, but much cleaner @ModifyStackTop(method="areRealmsNotificationsEnabled()Z", at=@At(value="TAIL"), require=1, allow=1) private static boolean changeReturnValue(boolean b) { return false; } ``` But...
To be honest, I don't see how this is better than `CallbackInfoReturnable` for the particular purpose of modifying returned value, knowing `CallbackInfoReturnable` was designed specifically to handle this. Your `ModifyStackTop`...
Ok, makes sense now. Somehow I've just been missing out on the key point.

> bruh I second this
I definitely like the idea of having the means to chat with players in secure way that does not put the task of relaying messages on game server, but this...
Thanks for your contribution. I will merge this into other branches myself when needed.