1. Sir BenSon

    Sir BenSon Wood Hoarder

    Hey there,

    its possible to read the cfg/user.cfg or easier: list all admins (ownerids) from a server?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You can loop through the BasePlayer.activePlayerList and check if player.IsAdmin().
     
  3. VVoid

    VVoid Plugin Developer

    or if you wanna get them all just in one move.
    Code (C#):
    var admins = ServerUsers.GetAll(ServerUsers.UserGroup.Owner);
     
    Wulf likes this.
  4. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    Forgot about that one, I think we even use something similar in Oxide. :p