Removing Delay After Closing Shop

Hello there, im rather new when it comes to editing plugins that people have created, i've got a server and ive asked for suggestions towards what we can do individually with plugins, regarding the server rewards plugin how might one remove the delay after purchasing from the shop as it does freeze your cursor and you are unable to move or do anything before it closes, we would just like to remove that function but im just having a hard time to locate where and how i might do it, any help would be greatly appreciated!

Hello!

I just wanted to add on to this and maybe offer some clarification.

I had actually never noticed this and decided to try  it.

If you buy something and then quickly hit the close button, the pop up window that displays what you bought, renders you unable to move the mouse.

This is very easy to repeat and happens with a 100% consistency.

If you were just chilling at your base or a safe zone (me) you would likely never notice this. But if you were say, buying ladders in the middle of a raid, or walls in the middle of PVP - I think you would ABSOLUTELY notice this lol.

<3

On line 696:

popupMessages.Add(player.userID, timer.In(3.5f, () =>
{
  CuiHelper.DestroyUi(player, UIPopup);
  popupMessages.Remove(player.userID);
}));​

The value 3.5f represents a float value of 3.5 seconds. I usually just change it to 1 so the user gets a quick popup confirmation but doesn't kill them mid-raid or battle.

If you want to get rid of the notifaction altogether, comment out the entire code snippet above. 

+1 for the comment from nuGGGz.