Make the target of targeted events final.
This commit is contained in:
parent
45a62a111e
commit
7444fca999
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user