Player.disconnect

Disconnects the player from the server (from both the node and the hub). The reason can be a Translation.

  1. void disconnect(Translation reason)
    class Player
    void
    disconnect
    (
    const Translation reason = Translation("disconnect.closed")
    )
  2. void disconnect(string reason)

Parameters

reason Translation

reason of the disconnection

Meta