Skip to content

Commit

Permalink
added the ondisabled 914/requireexiledversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoniofo committed Jul 31, 2024
1 parent 51676f2 commit 073a085
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ElevatorBC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,21 @@ public class ElevatorBC : Plugin<Config, Translation>

public override Version Version => new Version(1,1,1);

public override Version RequiredExiledVersion => new Version(8, 11, 0);

public override string Prefix => "elevatorbc";
public override void OnEnabled()
{
base.OnEnabled();
{
Exiled.Events.Handlers.Player.InteractingElevator += OnPlayerInteractElevator;
Exiled.Events.Handlers.Scp914.Activating += On914Activating;
base.OnEnabled();
}

public override void OnDisabled()
{
base.OnDisabled();
{
Exiled.Events.Handlers.Player.InteractingElevator -= OnPlayerInteractElevator;
Exiled.Events.Handlers.Scp914.Activating -= On914Activating;
base.OnDisabled();
}

public void On914Activating(ActivatingEventArgs ev)
Expand Down

0 comments on commit 073a085

Please sign in to comment.