Implement ServerDisconnectEvent. Wow so many server switch events.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package net.md_5.bungee.api.event;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NonNull;
|
||||
import lombok.ToString;
|
||||
import net.md_5.bungee.api.config.ServerInfo;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
import net.md_5.bungee.api.plugin.Event;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@ToString(callSuper = false)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class ServerDisconnectEvent extends Event
|
||||
{
|
||||
|
||||
/**
|
||||
* Player disconnecting from a server.
|
||||
*/
|
||||
@NonNull
|
||||
private final ProxiedPlayer player;
|
||||
/**
|
||||
* Server the player is disconnecting from.
|
||||
*/
|
||||
@NonNull
|
||||
private ServerInfo target;
|
||||
}
|
Reference in New Issue
Block a user