You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variables in events should be final, since the same reference is distributed to all plugins, we should prevent plugins from rewriting information in the Event capsules.
Example:
public class ErrorEvent extends Event {
private final String message;
public ErrorEvent(IRCEventPacket packet, Network network) {
super(network, packet.getRawline(), EventType.ERROR);
message = packet.getParameter(0);
}
public String getMessage() {
return message;
}
}
The text was updated successfully, but these errors were encountered:
Variables in events should be final, since the same reference is distributed to all plugins, we should prevent plugins from rewriting information in the Event capsules.
Example:
The text was updated successfully, but these errors were encountered: