Check if tool cupboard is destroyed?Solved

For a small server with friends i want to make a plugin where we will have 3 factions, one of these factions will get a "Blessing" where the players will get bonus resources etc. When the "Blessed" Team their TC is destroyed. I want the Blessed effect to be moved the team of which destroyed the TC.

I tried a bit of coding on my own. but i got stuck at getting the destroyed tc.

Any help would be appreciated. I have my fair share with c# but not with creating plugins. let alone rust plugins.

Thanks in advance

Not sure if that’s a hook, especially not Init. However, do you have discord? I wouldn’t mind making this but need more clarity

Yeah sure, not sure the regions were nessecary. You can add me: xmaniaxz#2993

Merged post

SOLVED: I Used the wrong Hook! Finally found it. For those who still have this issue: the correct hook is OnEntityDeath()

Locked automatically