Skip to content

Commit

Permalink
Update PVELoot.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Grimston authored Jan 8, 2019
1 parent 8cccb7c commit a8fbf5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PVELoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ bool CanLootPlayer(BasePlayer looter, BasePlayer target)
{
if (Friends == null)
{
return true; //Friends API Missing, default to true
return true;
}

string authLevel = ServerUsers.Get(target.userID)?.group.ToString() ?? "None";
//uMod Sucks and does not support IsAdmin on Rust
//So we check it and still check the manual way
if(looter.IsAdmin || authLevel.ToUpper() == "OWNER") {
return true;
}
Expand Down

0 comments on commit a8fbf5f

Please sign in to comment.