• 实验性

    参数

    • player: Player

      Player to transfer.

    • host: string

      Host of the server to transfer to.

    • port: number

      Port of the server to transfer to.

    返回 void

    Transfer player to another server.

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can throw errors.