Add server connected event

This commit is contained in:
md_5
2013-01-20 15:02:45 +11:00
parent 77d5398124
commit 9ce148681d
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
package net.md_5.bungee.api.event;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.connection.Server;
import net.md_5.bungee.api.plugin.Event;
/**
* Not to be confused with {@link ServerConnectEvent}, this event is called once
* a connection to a server is fully operational, and is about to hand over
* control of the session to the player. It is useful if you wish to send
* information to the server before the player logs in.
*/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class ServerConnectedEvent extends Event
{
/**
* Player whom the server is for.
*/
private final ProxiedPlayer player;
/**
* The server itself.
*/
private final Server server;
}