Three young men have been ordered to do 100 hours unpaid work after a violent disturbance at the Hebden Bridge sports and social club.
Judge Jonathan Durham Hall QC told the trio they had all been an “absolute nuisance” from time to time and had let their area down.
Bradford Crown Court heard how Dwayne Elder, 21, John Moynes, 19, and Remi Allen, also 21, had all come back to the club after being told to leave the premises earlier that night.
During the disturbance in January last year drunken Elder was abusive to a barman and tried to punch him after saying he wanted more drinks.
Prosecutor John Topham said Moynes also punched out at the barman hitting him twice.
Following the fracas the men were put outside the club where they got involved in an exchange with a group of women who had been on a “hen party” nearby.
When the police arrived Moynes and Allen were arrested and Elder had to be handcuffed after he became obstructive.
While Elder was in a police vehicle he made racist comments to a mixed race police officer.
Mr Hill-Baker said Allen, of Banksfield Avenue, Mytholmroyd, pleaded guilty to a charge of threatening behaviour relating to his conduct outside the club.
Elder, of High Street, Luddenden, Halifax, admitted charges of affray and racial harassment.
Moynes, also of Banksfield Avenue, pleaded guilty to affray.
The court heard that the three men had kept out of trouble for almost exactly a year and Judge Durham Hall said he was prepared to treat the incident as being out of character for them.
He pointed out the 12-month community orders, which included the 100 hours unpaid work, were an alternative to custody and the men faced prison sentences of up between four and eight months if they breached the orders.