Umm, not possible unless done manually. For example, you can build a system to record that person's client's screen, but I don't know how to do that and I have never seen it done before
Other best choice is to have a variable in each player's files called "tracked", and set it to false as default.
Now go into actionhandler, clickingbuttons, and other classes that are intractable, and put something that checks to see if "tracked" is true, and if it is, it records that players action into a certain ".txt" file. And then you can make a command which changes the "tracked" to true, and or false when the command is used with that players name.
Logging: Google "Log commands site:rune-server.org", copy and paste and change to your liking. Then have this method executed from each class with different directions.
Command: Make a copy of your "setrights" or "ban" command, and change it to where the instead of "banned = true", it says "tracked = true", and then make one for "tracked = false"
This is probably the best solution as I don't think there is a think to track exactly what the player is doing, but of course... nothing is impossible