When your cursor is facing a block (and in range), hiding players will register twice. The players will hide, and then a cooldown message will be sent milliseconds later. If you disable the cooldown, the players hide and then immediately reappear.
Repro Steps
Hold the player player hider (by default the dye in the last hotbar slot)
Point your cursor at a nearby solid block
Right-click
Expected
The players will hide and a cooldown message will only be sent if the user tries a second time. The expected result can be observed when repeating the same repro steps while your cursor is facing towards air (such as the sky).
Actual
It registers twice and a cooldown is sent immediately after hiding the players.
When your cursor is facing a block (and in range), hiding players will register twice. The players will hide, and then a cooldown message will be sent milliseconds later. If you disable the cooldown, the players hide and then immediately reappear.
Repro Steps
Expected The players will hide and a cooldown message will only be sent if the user tries a second time. The expected result can be observed when repeating the same repro steps while your cursor is facing towards air (such as the sky).
Actual It registers twice and a cooldown is sent immediately after hiding the players.