Great share it is working very good, only problem I see is the UPPERCASE letters, is that anyway to make it uppercase or lowercase or even mixed.
It was a lot of players in jail today in my server, most of then for mistakes on the typing, they used lowercase instead. Lot of players got pissed off.
Also:
When I used a Dreadnought as a gm and it killed lots of mobs at the same time the window keep changing the code and then sometimes it stop with no code at all. I don't know if a regular char will be able to reproduce that but maybe it they kill 49 mobs and then kill 3 more in one hit (50, 51 and 52) it might happen.
Let me know if the fix above will fix that problem.