Feature suggestion: API
For CotM, I would like to be able to automate things more. I would love to be able to use rfwadmin programatically to set up the server for a match, so that our referees don't need to directly access rfwadmin at all. For example, I would like our referee control panel to be able to do the following things:
- Check the current status of the server (started or not)
- Load a specific map
- Enable / disable specific plugins or server jars
- Start / restart / stop the server
- Send console commands
I suspect this is all possible already by sending the appropriate POST requests, but it's difficult to work out exactly how to do it. So perhaps all that I need is some documentation :)
No, rfwadmin doesn't have an API for that (yet, at least).
Use Fiddler to capture the commands that are sent to RFWAdmin when you click start/stop etc, and send HTTP POST commands with the same contents. That might work.
It's doable via Chrome's web dev tools. Firefox and IE both have similar systems. A published API would still be nice though :)