How to Get Reason Details in Frontend when Plugin Remove Actor

Hi Guys.

I have a game that in some cases the Plugin must kick a player. I'm using this method

PluginHost.RemoveActor(int actorNr, string reasonDetails)

to make this action. So, in front end, when the player are kicked, with callbacks I change the scenes, but i want to know how to Get the Reason Details string that I've passed in RemoveActor method. There is a specific callback that is called when I use this method to remove a actor from room?

Other question. There is a way for me destroy imediatilly the room when I kick all actors from there?

Thanks!

Comments

  • JohnTubeJohnTube mod
    edited March 29
    Hi @PedroHN85,

    There is a specific callback that is called when I use this method to remove a actor from room?
    No.

    As mentioned in this discussion.

    The server does not send anything to the client in this case.
    What you can do is: send a custom event to the client and delay calling RemoveActor using a timer.

    There is a way for me destroy imediatilly the room when I kick all actors from there?
    I think in the current plugins SDK version there is no way to do so. In future SDK versions the API allows you to change EmptyRoomTTL to 0.
Sign In or Register to comment.