Conflict with Prevent Looting

I use Prevent Looting to protect playhers bodies from being looted and Loot Defender to protect the loot from heli, Bradley, etc. Today I noticed a player mention in chat that they shot down heli but when they went to loot it, it said it wasn't theirs. I also use True PVE. When I checked the log, I saw this:

Calling hook CanLootEntity resulted in a conflict between the following plugins: PreventLooting - False (Boolean), LootDefender (True (Boolean))

So, these two plugins sometimes conflict. Is there a way to fix this? Something I need to do in the config?

prevent looting should be returning true, not false

also the plugin is not going to tell a player its not theirs if they received the message that it locked to them

nivex

prevent looting should be returning true, not false

also the plugin is not going to tell a player its not theirs if they received the message that it locked to them

It has happened several times. I've had players take down heli, they go to the loot and they can't loot it. I didn't think to check the log until after the last time it happened (That I'm aware of), just before I posted here.

they must be in the same clan, same team or on the persons friends list (Friends plugin) as the person who the plugin said it locked to in chat

nivex

they must be in the same clan, same team or on the persons friends list (Friends plugin) as the person who the plugin said it locked to in chat

Yes, I know that. The person that shot down the heli, in some cases, is given a message that they couldn't loot it even though they are the one that shot it down. The one time I checked the console after that, I found the error I posted above.

alright, you can start by fixing the conflict in the prevent looting plugin

do this by searching for private object CanLootEntity(BasePlayer player, StorageContainer container) and replacing return false; with return true; in the PreventLooting.cs file on line 296

nivex

alright, you can start by fixing the conflict in the prevent looting plugin

do this by searching for private object CanLootEntity(BasePlayer player, StorageContainer container) and replacing return false; with return true; in the PreventLooting.cs file on line 296

Ok, I will do that and I'll keep an eye out for any more instances where players can't loot the crates.

Hello !

I had also this error on my server, when one of the players wanted to steal the contents of a hackable container

And, players get two messages to say the same thing


I patch the PreventLooting plugin with advice from @nivex, I will let you know if I have other problems after applying this one.

It happened again. The player that downed the heli could not loot it and the player it says did 100% damage had logged off several minutes before it was shot down.

Has the conflict between the two plugins been resolved? I also encountered it. How to solve it? Can you tell me?

I gave the answer for the plugin conflict above already, and I submitted a patch for it which has not been approved yet. either way, the conflict between LootDefender and PreventLooting is not going to cause this issue with being unable to loot. the issue with being unable to loot is caused by LootDefender not setting the owner properly and I don't know why.