I don't know, but maybe you could do something like give the player Mining Fatigue Lv. 10 or 20 or some ridiculously high number for 1 - 2 seconds after that?
Lol that would be even harder to code
And probably wouldn't work the way you think it would