Events/get_reveal_role
< Events
Jump to navigation
Jump to search
The get_reveal_role event is called whenever a role needs to be displayed that is potentially not the player's actual role.
Event callback
def on_get_reveal_role(event: Event, var: module, nick: str) -> None
- prevent_default has no effect for this event.
event
: The event objectvar
: Reference to the src.settings modulenick
: Player whose role we are revealing
Event data
{
"role": str
}
Modify the role data item in order to change what role this player is revealed as.