It is the responsibility of the clubs to ensure their players behave in a way that falls in line with their lease.Hadrefereesthe clubs dealt with it appropriately the issue would not have escalated in the way it did, with no football allowed there for a protracted period.
Swearing is not an offence in LOTG. So if teams are using swear words but not in an offinabus way the referee does not need to act but the club could still be turfed off.
This is not on the referees I am afraid but on the clubs that were booted off.