1. Hello,I am making a plugin for players to be not able to loot players with a specific permission,I'm not sure if this would work and how would i check if the player has a specific permission
    Code:
            private bool CanLootPlayer(BasePlayer target,BasePlayer looter)
            {
                if () // Permission check not sure how to do it
                {
                    if () // Permission check not sure how to do it
                    {
                        return true;
                    }
                    return false;
                }
                else
                {
                    return true;
                }
            }
    
     
  2. For permissions use this
    Code:
    if (permission.UserHasPermission(looter.UserIDString, "yourpermissionNamehere"))
     
  3. Thanks,any ideas if the looting disabling part will work?