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
                                     @NonNull ServerInfo target)
    • Method Detail

      • getPlayer

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

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

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object