diff --git a/api/src/main/java/net/md_5/bungee/api/event/TargetedEvent.java b/api/src/main/java/net/md_5/bungee/api/event/TargetedEvent.java index c64105ab..5366d73b 100644 --- a/api/src/main/java/net/md_5/bungee/api/event/TargetedEvent.java +++ b/api/src/main/java/net/md_5/bungee/api/event/TargetedEvent.java @@ -7,10 +7,7 @@ import net.md_5.bungee.api.connection.Connection; import net.md_5.bungee.api.plugin.Event; /** - * An event which occurs in the communication between two nodes. It is not - * recommended to call {@link #setSender(net.md_5.bungee.api.Connection)} or - * {@link #setReceiver(net.md_5.bungee.api.Connection)} and the results of doing - * so are undefined. + * An event which occurs in the communication between two nodes. */ @Data @AllArgsConstructor @@ -21,9 +18,9 @@ public abstract class TargetedEvent extends Event /** * Creator of the action. */ - private Connection sender; + private final Connection sender; /** * Receiver of the action. */ - private Connection receiver; + private final Connection receiver; }