Skip to content

Commit

Permalink
Update PVELoot.cs
Browse files Browse the repository at this point in the history
Added support for MOD? Needs testing if this is the actual value
  • Loading branch information
Grimston authored Jan 8, 2019
1 parent a8fbf5f commit c32f391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PVELoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Oxide.Plugins
{
[Info("PVE Loot", "Grimston", "0.1.0")]
[Info("PVE Loot", "Grimston", "0.1.1")]
[Description("Blocks players looting other players unless they are friends.")]
class PVELoot : CovalencePlugin
{
Expand All @@ -17,7 +17,7 @@ bool CanLootPlayer(BasePlayer looter, BasePlayer target)
}

string authLevel = ServerUsers.Get(target.userID)?.group.ToString() ?? "None";
if(looter.IsAdmin || authLevel.ToUpper() == "OWNER") {
if(looter.IsAdmin || authLevel.ToUpper() == "OWNER" || authLevel.ToUpper() == "MOD") { //Need to test MOD
return true;
}

Expand Down

0 comments on commit c32f391

Please sign in to comment.