public void OnElevatorInteract(ElevatorInteractEvent ev) { if (Dump.PlayerLock.Contains(ev.Player.UserId)) { ev.Allow = false; } }
public static void InvokeElevatorInteract(GameObject player, Lift.Elevator elevator, ref bool allow) { if (ElevatorInteractEvent == null) { return; } ElevatorInteractionEvent ev = new ElevatorInteractionEvent() { Player = player.GetPlayer(), Elevator = elevator, Allow = allow }; ElevatorInteractEvent.Invoke(ref ev); allow = ev.Allow; }