Skip to content

Commit

Permalink
reee
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Sep 11, 2021
1 parent ecdc2e9 commit 2b919c2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CustomItems/CustomItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,24 @@ public class CustomItems : Plugin<Config>
/// </summary>
public Random Rng = new Random();

private static readonly CustomItems InstanceValue = new CustomItems();

private Harmony harmonyInstance;

private ServerHandler serverHandler;

private PlayerHandler playerHandler;

private CustomItems()
{
}

/// <summary>
/// Gets the Plugin instance.
/// </summary>
public static CustomItems Instance => InstanceValue;
public static CustomItems Instance { get; private set; }

/// <inheritdoc/>
public override Version RequiredExiledVersion { get; } = new Version(3, 0, 0);

/// <inheritdoc/>
public override void OnEnabled()
{
Instance = this;
serverHandler = new ServerHandler();
playerHandler = new PlayerHandler();

Expand Down Expand Up @@ -87,6 +82,7 @@ public override void OnDisabled()

serverHandler = null;
playerHandler = null;
Instance = null;

base.OnDisabled();
}
Expand Down

0 comments on commit 2b919c2

Please sign in to comment.