Team-Silver-Sphere / SquadJS

Squad Server Script Framework
Boost Software License 1.0
163 stars 123 forks source link

Added FTP source type to admin lists. #379

Closed mbartisan closed 3 weeks ago

mbartisan commented 3 weeks ago

The admin-list system now supports loading the Admins.cfg file via FTP, significantly improving compatibility with game server providers. By setting the admin-list configuration type to ftp and providing an FTP URL as the source, the Admins.cfg file will be downloaded into a buffer and parsed by the rest of the system.

    {
        "type": "ftp",
        "source": "ftp://<user>:<password>@<host>:<port>/<url-path>"
      }
werewolfboy13 commented 3 weeks ago

@mbartisan Are we able to provide some documentation in the template folders?

mbartisan commented 3 weeks ago

@werewolfboy13 Yeah I can. I also forgot to commit my removal of the debug logs. I'll update the PR in a sec.

werewolfboy13 commented 3 weeks ago

Then please run yarn build-all. You will need to have ran yarn install --ignore-engines If it is not installed locally yet.

mbartisan commented 3 weeks ago

@werewolfboy13 Latest is pushed. Lmk if there are any other docs that should get updated.

werewolfboy13 commented 3 weeks ago

There is, see above. May want to lint as well yarn lint

mbartisan commented 3 weeks ago

@werewolfboy13 Updated. The build and linter modified some files that were outside of my changes. They're in separate commits for each if any should get culled.

werewolfboy13 commented 3 weeks ago

@mbartisan that is fine. I always do squash and merge.