+ Reply to Thread
Results 1 to 5 of 5

Thread: kick user plugin issues

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    kick user plugin issues

    I've written a plugin extension to timeout users to not hold up other users in the room. After 3 time outs the user is kicked from the room. When the user is kicked, the plugin's userExit and userKicked method were not called so I added the handling of the exiting of the user at the same time as sending.

    Is this how this is supposed to be handled? Or what should I expect?

    The plugin needs to know who enters the room and who exits.

  2. #2
    Member
    Join Date
    Nov 2005
    Posts
    67
    Thanks
    4
    Thanked 2 Times in 1 Post
    I just did a test.

    If a user is kicked by "kickUserFromRoom" neither userExit method nor userkicked method will get called.

    If a user is kicked by "kickUserFromServer" userExit method will get called but not userkicked method.

    It looks like a bug to me!

    I have extensions that are having trouble cleaning up users. I thought that userExit will always get called when users leave the room. Now I know the cause.

    Teresa could you confirm this?

  3. #3
    Administrator tcarr's Avatar
    Join Date
    Dec 2007
    Posts
    7,284
    Thanks
    81
    Thanked 1,093 Times in 1,082 Posts
    I have not used "kickUserFromServer" myself. I do use "kickUserFromRoom". Checking my code and logs, I see that my userKicked method isn't getting triggered either. My method that does the kicking was already set up to clean up details before the player got kicked, so I'm not sure whether it calls userExit or not. I do remember having to add a check to my userExit method to return if the player had already been marked as gone from the game, because otherwise in some circumstances an infinite loop was being triggered; that might not have anything to do with the kicking however.

    Thanks for the bug report!
    Teresa Carrigan
    Senior Engineer
    Electrotank, Inc.

  4. #4
    Junior Member
    Join Date
    Jun 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I found a similar report (4/2/2008 from Sankar, I think it's #5418).

    I also did some more testing and have the same problem with the Language Filter kick/evict. Neither userExit nor userKicked get called.

    Did find that if the client does a leave room request when receiving the evicted from room event, that the userExit gets called in the plugin extension. But when the client receives the leave room event, handling of the event may cause errors, because the zone or room may no longer exist by the time it's received.

    Any other suggestions on what would work better would be appreciated.

  5. #5
    Senior Member
    Join Date
    Jun 2008
    Posts
    157
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is a bug, and has been fixed in the latest development version. Please contact ES4 Support to get a copy of the patch.

    We're looking to get 4.0.5 out that will incorporate all the recent fixes as well.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts