Plugin with problem after forced rust wipe

Plugin with problem after forced rust wipe - SkinShop - "Failed to compile: SkinShop.cs(536,26): error CS1061: Type `ItemCraftTask' does not contain a definition for `owner' and no extension method `owner' of type `ItemCraftTask' could be found. Are you missing an assembly reference?"

Plugin no longer works

Replace:

  private void OnItemCraftFinished(ItemCraftTask task, Item item)
        {
            if (task == null || task.owner == null || !task.owner.userID.IsSteamId()) return;

            SetSkin(task.owner, item);
        }​

With:
		void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter)
		{
			var player = itemCrafter.owner;
			if (player != null)
				SetSkin(player, item);
		}​

First off, I want to say thank you for your suggestion.  It worked to allow the plugin to load.  I sincerely appreciate the reply to fix the situation.  I am having one problem since the fix.  I have always loaded into the skinshop GUI by entering /skinshop in the chat interface.  Now, however, nothing happens when I enter the /skinshop command in chat.  Is there something that the above fix might have changed for that to no longer work, or do I need to do something else for the /skinshop command to function again.  

Merged post

Follow up information.  Although the plugin has been confirmed that it loaded.  I get the following server error when trying to use /skinshop in game.

Failed to call hook 'ShowSkinShop' on plugin 'SkinShop v0.5.2' (NullReferenceException: Object reference not set to an instance of an object)
@Trader08 - Thank you very much, it worked fine... \o/
dadkins160

First off, I want to say thank you for your suggestion.  It worked to allow the plugin to load.  I sincerely appreciate the reply to fix the situation.  I am having one problem since the fix.  I have always loaded into the skinshop GUI by entering /skinshop in the chat interface.  Now, however, nothing happens when I enter the /skinshop command in chat.  Is there something that the above fix might have changed for that to no longer work, or do I need to do something else for the /skinshop command to function again.  

Merged post

Follow up information.  Although the plugin has been confirmed that it loaded.  I get the following server error when trying to use /skinshop in game.

Failed to call hook 'ShowSkinShop' on plugin 'SkinShop v0.5.2' (NullReferenceException: Object reference not set to an instance of an object)

Shouldn't affect the chat command. Make sure you completely remove (or comment) the old function with the new. I do realize "private" didn't paste for some reason. Still shouldn't afyer the chat command, but here's exactly how I have it on my end:

		private void OnItemCraftFinished(ItemCraftTask task, Item item, ItemCrafter itemCrafter)
		{
			var player = itemCrafter.owner;
			if (player != null)
				SetSkin(player, item);
		}

 

If you're still gaving issues, you can completely comment that function. The plugin would still work, it only would not apply "equipped" skin on craft

Awesome, thx a lot!!

Damn, still there

'MemoryCache' is inaccessible due to its protection level [CS0122]
     (SkinShop 17 line 30)​