1. Code:
      local playerList = player.activePlayerList
      local enum = playerList:GetEnumerator()
    What wrongs with this code after update? I'm getting offline players in list what already disconnected from server long time ago. This happens not for all players, but some still stored here. For example plugin running man now can set as running man player that slepping. Also i'm getting offline players displayed on rustio map like online (and display they positions).

    Is this oxide problem or rust? Anyone else have this problem?
     
  2. Have you tried looking up their position and check them out on the map? It's possible that something went wrong and they didn't log correctly. Because Oxide doesn't do anything to those lists and in BasePlayer.OnDisconnected() it's still removing the player from the list. The only plugins I can think of that mess with those lists are those that fake population.
     
  3. @Mughisi

    Yes they are on map and they are sleeping. Already found that one sleeping guy was running map... And looking around found another sleeping players what actually shows in this list like online. Also server itself report correct player count, so this problem only in activePlayerList variable.

    After look logs i found this intresting thing:

    So oxide actually detected that player connected to server, but hook ondisconnect didn't called when he was disconnected because of "You are already connected". It seems like same thing happens to some other players. After this it still displaying like "connected" in rustio map and activePlayerList and it seems like he can't connect anymore to server.
     
  4. Hook or no hook, the server still handles the disconnection of player, this most likely an issue with the server. What you can try is kick the players that are stuck online, or kill them.
     
  5. Hmmm, it seems like kick help. When i'm kicking stuck player oxide called hook ondisconnect and after that list clears. Thank you for tip, but still, something wrong that players can stuck on server... Probably an rust problem because before latest update never had such problem.
     
  6. It is most likely a rust problem yes, unless you have a plugin that's messing with the playerlists as I mentioned previously :p, and the hook doesn't really have anything to do with it, it's the method OnDisconnected() in BasePlayer that needs to run (which at some point triggers the hook OnPlayerDisconnect)
     
  7. Its a rust problem man i have it on my server too.