1. How to get file list in some data directory?
    Like Directory.GetFiles()
    [DOUBLEPOST=1491051991][/DOUBLEPOST]Or maybe i can get list of players include offline players?
    [DOUBLEPOST=1491053148][/DOUBLEPOST]Players list is not correct way, so i need to get file list in directory.
    I'd create file for each player who connected to server before, and i need to split files now.
    So i need to get list of files in data directory and load it to plugin.
    PlayerManager contains only players, who connected to server after last server wipe, and this is not fully list. :(
     
  2. Wulf

    Wulf Community Admin

    There's no way to get a list of files from a directory aside from trying by name using the datafile API from Oxide. Rust should have something for checking offline players, but you could use the Covalence API from Oxide to get all players that have connected before.

    Example:
    Code:
    covalence.Players.All