Penalties
Overview
For further information about the type of penalties, please see Sanctions.
If a sanction involves any point decrement due to a penalty, then the action has two parts. The first part is always a Sanction packet that describes the reason of a sanction (yellow and red card for the 1st time, or for the 2nd time, etc), followed by a PenaltyPoint packet that contains the actual scores of the match, indicating a 1 point or 2 points decrements.
Player - Yellow Card π¨
Coach- Yellow Cardπ¨ (Currently not supported)Player - Yellow and Red Card (1st) π¨ π₯
Player - Yellow and Red Card (2nd) π¨ π₯
1. Player - Yellow Card (Warning) π¨
Showing a yellow card by the umpire is a warning to the player. If the player repeats the action or do something else wrong they can get a red card and then lose a point (See Penalty Points). A Sanction packet, along with the sanction type will be emitted. (no penalty points).
{
"eventElementType": "Sanction",
"id": 0,
"seqNum": 51,
"sanctionType": "PlayerYellowCard",
"team": "TeamA",
"game": 2,
"timestamp": "1970-01-01T00:00:00.000Z"
}1. Coach - Yellow Card π¨ (Currently not supported)
Showing a yellow card by the umpire is a warning to the coach. A Sanction packet, along with the sanction type will be emitted. (no penalty points).
1. Player - Yellow & Red Card (1st) π¨ π₯
Showing a yellow and red card together for the 1st time means the player repeated any wrongdoing or did something else wrong and now losing a point (See Penalty Points). After the Sanction packet, a PenaltyPoint packet is emitted showing the current state of scores - 1 point decrement is expected.
1. Player - Yellow & Red Card (2st) π¨ π₯
Showing a yellow and red card together for the 2nd time means the player repeated any wrongdoing or did something else wrong and now losing a point (See Penalty Points). After the Sanction packet, a PenaltyPoint packet is emitted showing the current state of scores - 2 points decrement is expected.
1. Penalty Point(s)
Showing a yellow and red card together means the player repeated any wrongdoing or did something else wrong, and one or two points are awarded to the opponent for the offence(s). Before a PenaltyPoint packet, a Sanction is expected to be received (See Player Yellow and Red 1 Card or Player Yellow and Red 2 Card), and the current state of scores is being sent as part of the PenaltyPoint packet.
Last updated
Was this helpful?