public void On079Lock(Player079LockEvent ev) { if (System.Array.IndexOf(scp079blklst, ev.Door.Name) != -1) { ev.Allow = false; ev.APDrain = 0; } }
void IEventHandler079Lock.On079Lock(Player079LockEvent ev) { send(ev, new IdMapping() .appendId(Lib.PLAYER_ID, ev.Player) .appendId(Lib.PLAYER_EVENT_SCPDATA_ID, ev.Player.Scp079Data) .appendId(Lib.PLAYER_EVENT_TEAM_ROLE_ID, ev.Player.TeamRole) .appendId(Lib.EVENT_DOOR_ID, ev.Door) ); }