Hi there!
Would you mind adding an API to preven the loot from being handled by this plugin?
I have arena plugins that get their loot erased.
This seems to work a treat.
private object OnLootSpawn(LootContainer container)
{
if (!initialized || container == null)
return null;
if (CustomLootSpawns != null && (CustomLootSpawns && (bool)CustomLootSpawns?.Call("IsLootBox", container.GetComponent<BaseEntity>())))
return null;
if (Interface.CallHook("OnPopulateBetterLoot", container) != null) return null;
if (PopulateContainer(container))
{
ItemManager.DoRemoves();
return true;
}
return null;
}