Force client disconnect from Server Plugin

Options
Would it be possible to force a client to disconnect from a room, or to similarly deny a room join request for a specific client from the plugin?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited September 2020
    Options
    Hi @JPGOrdon,

    To "force a client to disconnect from a room" from a server plugin:
    Use one of the PluginHost.RemoveActor overload methods (example this).
    Also read this.
    to "deny a room join request for a specific client" from a server plugin:
    Call info.Fail in BeforeJoin.