Skip to content

Commit

Permalink
Fix permission extension class name to not break plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
joker-119 committed Apr 5, 2020
1 parent 8907d0d commit 8074539
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EXILED_Events/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class EventPlugin : Plugin
internal static Random Gen = new Random();
public static bool WarheadLocked;
public static string VersionUpdateUrl = "none";
public static ExiledVersion Version = new ExiledVersion { Major = 1, Minor = 9, Patch = 12 };
public static ExiledVersion Version = new ExiledVersion { Major = 1, Minor = 9, Patch = 14 };

//The below variables are used to disable the patch for any particular event, allowing devs to implement events themselves.
#region Patch Disable
Expand Down
1 change: 1 addition & 0 deletions EXILED_Main/Extensions/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ private static IEnumerator<float> BlinkTag(ReferenceHub player)
/// <param name="sight">0 is no sight, 1 is the first sight in the Weapon Manager</param>
/// <param name="barrel">0 is no custom barrel, 1 is the first barrel in the Weapon Manager</param>
/// <param name="other">0 is no extra attachment, other numbers are the ammo counter, flashlight, etc.</param>
[Obsolete("Use AddItem instead.", true)]
public static void GiveItem(this ReferenceHub player, ItemType itemType, float duration = float.NegativeInfinity, int sight = 0, int barrel = 0, int other = 0) => player.inventory.AddNewItem(itemType, duration, sight, barrel, other);

// Adapted from https://github.com/galaxy119/SamplePlugin/blob/master/SamplePlugin/Extensions.cs
Expand Down
2 changes: 1 addition & 1 deletion EXILED_Permissions/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using EXILED;

public static class Extensions
public static class Extenstions
{
public static bool CheckPermission(this ReferenceHub rh, string permission) => rh.gameObject == PlayerManager.localPlayer || PermissionPlugin.CheckPermission(rh, permission);
}

0 comments on commit 8074539

Please sign in to comment.