clicraft icon indicating copy to clipboard operation
clicraft copied to clipboard

Add an action script to get statistics from the server

Open mdaffin opened this issue 13 years ago • 2 comments

It would be nice to have an action script (or at least an example one) that parses output from the server, the server.log file or the other minecraft files to get information about the server. Some things it could be possible to obtain are;

  • Number of times the server has restarted
  • Find WARNINGs or errors
  • Number of people that have been disconnected
  • Number of players that have logged in over the past X hours/days
  • Number of times a player has logged in over the past X hours/days
  • Number of hours a player has spent playing
  • Player that have used a command?

Or anything else that could be used to help improve the maintenance of a minecraft server or interesting for admins/players.

mdaffin avatar Jul 09 '12 01:07 mdaffin

This sort of functionality might be more appropriate in a standalone script. There would be several benefits to this approach:

  • Others who don't use clicraft could benefit from it
  • Such a tool wouldn't have to be written in bash (I'd imagine it would be painful to write in bash)
  • Clicraft could, of course, wrap it in the same way it currently wraps around c10t and mcexplore

That said, I wouldn't mind including it as an example action script. Patches welcome.

DMBuce avatar Jul 19 '12 03:07 DMBuce

I will have a look into writing a simple python program to do this when I have time and will report back when I have it working.

mdaffin avatar Jul 20 '12 17:07 mdaffin