Askarn removed my code... :'(
This is a fix to distribute resources to players (related to the HTML interface).