It allows you to save your color (one main and one away color) for automatic applying when the !balance or !fixcolors commands are issued. (Would be ideal to do it when you arrive to the battle room but I couldn't make it work with onJoinBattleRequest. I only tested with tasclient: maybe it works with other lobbies...).
Many people in xta at least so often use the same color that it has become associated with those people. Like Wayne Gretzky and 99. But at least Tasclient does not apply the same color when you leave battle room and rejoin. So with this you can make your color permanent.
It provides the following commands:
[savecolor]
!savecolor [<user>] [away]
!savecolor Jools - saves the current color of user 'Jools' to the database.
!savecolor - saves the current color of the user who gave the command to the database.
!savecolor Jools away - saves the current color as away color of user 'Jools' to the database.
[loadcolor]
!loadcolor [<user>]
!loadcolor Jools - loads the current color of user 'Jools' from the database.
!loadcolor - loads the current color of the user who gave the command from the database.
[removecolor]
!removecolor [<user>]
!removecolor Jools - removes the current color of user 'Jools' from the database.
!removecolor - removes the current color of the user who gave the command from the database.
[printcolor]
!printcolor [<user>]
!printcolor Jools - prints the currently used spring color of user 'Jools' to output.
!printcolor - prints the currently used spring color of the user who gave the command to output.
[listcolors]
!listcolors [<user>]
!listcolors - lists the currently saved colors of all users in list to output.
!listcolors Jools - lists the currently saved colors for user Jools to output.
TODO: make it save database to a file.
Edit: Thanks for the instructions. Made the necessary corrections and I put a newer version here instead. It saves the data and uses the joinedbattle event instead.