Class ServerDisconnectEvent

  • public class ServerDisconnectEvent
    extends Event
    Called when the player is disconnected from a server, for example during server switching. If the player is kicked from a server, ServerKickEvent will be called instead.
    • Constructor Detail

      • ServerDisconnectEvent

        public ServerDisconnectEvent​(@NonNull
                                     @NonNull ProxiedPlayer player,
                                     @NonNull ServerInfo target)
    • Method Detail

      • getPlayer

        public @NonNull ProxiedPlayer getPlayer()
        Player disconnecting from a server.
      • getTarget

        public @NonNull ServerInfo getTarget()
        Server the player is disconnecting from.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        hashCode in class Object