forked from Krymonota/Bungee-Reconnect
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathServerReconnectEvent.java
More file actions
38 lines (28 loc) · 879 Bytes
/
ServerReconnectEvent.java
File metadata and controls
38 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package eu.the5zig.reconnect.api;
import net.md_5.bungee.api.config.ServerInfo;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.plugin.Event;
public class ServerReconnectEvent extends Event {
private final ProxiedPlayer player;
private ServerInfo target;
private boolean cancelled;
public ServerReconnectEvent(ProxiedPlayer player, ServerInfo target) {
this.player = player;
this.target = target;
}
public ProxiedPlayer getPlayer() {
return this.player;
}
public ServerInfo getTarget() {
return this.target;
}
public boolean isCancelled() {
return this.cancelled;
}
public void setCancelled(boolean cancelled) {
this.cancelled = cancelled;
}
public String toString() {
return "ServerReconnectEvent(player=" + this.getPlayer() + ", target=" + this.getTarget() + ", cancelled=" + this.isCancelled() + ")";
}
}