From 7444fca999b7edb85f2c3ec3e548ac89daa2d2bb Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 26 Jan 2013 14:56:04 +1100 Subject: [PATCH] Make the target of targeted events final. --- .../java/net/md_5/bungee/api/event/TargetedEvent.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; }