#2379: Add ServerSwitchEvent getFrom API
This commit is contained in:
@@ -3,6 +3,7 @@ package net.md_5.bungee.api.event;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
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;
|
||||
|
||||
@@ -19,4 +20,9 @@ public class ServerSwitchEvent extends Event
|
||||
* Player whom the server is for.
|
||||
*/
|
||||
private final ProxiedPlayer player;
|
||||
/**
|
||||
* Server the player is switch from. May be null if initial proxy
|
||||
* connection.
|
||||
*/
|
||||
private final ServerInfo from;
|
||||
}
|
||||
|
Reference in New Issue
Block a user