Detectives from the Trident and Area Crime Command investigated and carried out inquiries, including reviewing CCTV in the area.
Eye witness accounts, led to Krasniqi being identified as the man firing the gun in the CCTV.
Mr Newman continued: 'The dismissals were met with dismay by Eastway fans who became highly-agitated and hostile to Mr Pashby.'The drinking started at an early stage, as soon as the turnstiles opened, and no doubt influenced the passions of fans.'In about the 80th minute, Mr Pashby gave a further red card to an Eastway player for abusive language and that seemed to be the immediate trigger for this defendant, whose team were losing.'He emerged from the crowd and ran onto the field of play.
He had evidently been drinking because he was seen to discard a can of beer as he ran onto the pitch.'Mr Pashby, who was noting down the name of the player he had just red-carded, had his back to Prew as he attacked him and did not see the blow coming.'Mr Pashby fell awkwardly to the ground, temporarily lost consciousness and dislocated his shoulder.
A soccer thug who ran onto the pitch and shoulder-barged a referee to the ground at an English non-league cup final putting him in hospital has been hailed for 18 months.
Scott Prew, 23, ran on to the field of play after veteran referee Bill Pashby had sent three players off from his team in the Scarborough District League cup final.
The game was subsequently abandoned in the 82nd minute when Prew launched himself at Mr Pashby which left him in a heap on the ground - injuring his shoulder.
Prosecutor Austin Newman said throughout the 'keenly-contested' match between the local rivals, Mr Pashby had to deal with many 'on-field disputes'.
He said: 'The more and more drink that was consumed by supporters, the more boisterous it became.
The footage shows Krasniqi appearing to be handed a weapon by a friend, before he lashed out at another man nearby.
After briefly walking away from the scene, he is seen turning around and firing the weapon, with his victim briefly falling to the floor.
He said: 'I've never seen such shocking scenes.'The Eastway lot don't have the best reputation as it is and as tempers flared up - three of the away team [Eastway] got sent off.'The eye-witness said Eastway had a goal disallowed and a penalty saved 'which made emotions run high'.
The ugly scenes marred the final after Mr Pashby sought medical attention for 10 minutes while he lay motionless in the middle of the pitch.