Skip to content

Commit

Permalink
Fix backpacks.use.small permission not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver committed Sep 30, 2018
1 parent 2f2f975 commit edc7d4d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Backpacks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
using Oxide.Core;
using System;

// Changes:
// - Saving dataint for keys
// - Fixed error with NPC deaths

namespace Oxide.Plugins
{
[Info("Backpacks", "LaserHydra", "2.1.7", ResourceId = 1408)]
[Info("Backpacks", "LaserHydra", "2.1.8", ResourceId = 1408)]
[Description("Allows players to have a Backpack which provides them extra inventory space.")]
internal class Backpacks : RustPlugin
{
Expand Down Expand Up @@ -80,7 +76,7 @@ private class Backpack
public StorageSize Size =>
_instance.permission.UserHasPermission(ownerID.ToString(), "backpacks.use.large") ? StorageSize.Large :
(_instance.permission.UserHasPermission(ownerID.ToString(), "backpacks.use.medium") ? StorageSize.Medium :
(_instance.permission.UserHasPermission(ownerID.ToString(), "backpacks.use.medium") ? StorageSize.Small : Configuration.BackpackSize));
(_instance.permission.UserHasPermission(ownerID.ToString(), "backpacks.use.small") ? StorageSize.Small : Configuration.BackpackSize));

public Backpack(ulong id)
{
Expand Down

0 comments on commit edc7d4d

Please sign in to comment.