Thanks Karye for pointing that out... it IS out of place. That line should be cut and placed in between line 181 and 182 for now... I will fix that and update the release as soon as I get a chance.
Ideally, it should be placed in the event handler for the Disarm Text event when the chest is actually confirmed to be disarmed, but I couldn't figure out a way to figure out which chest id the disarm text in the chatwindow corresponds to. Is there a way to actually get the item id that the "You have disarmed an <ornate|small|whatever> chest" text corresponds to that I'm missing?
I did look at the stack and queue objects, but neither really fit what I was trying to do with it, since I do scan all objects in the array and peek only gets the top object in the stack and with queue, peek only gets the first item in the stack.
The only reason I use this stack-like array is to prevent spamming the client with /apply_verbs and make it simulate fast user input somewhat "realistically".
Thanks for the input, and I really appreciate the feedback!