API Request

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;
        }

So you dont want BetterLoot to do what its meant to do which is handle loot containers ?

nMyfFlEnglczTD3.jpg pookins

So you dont want BetterLoot to do what its meant to do which is handle loot containers ?

It is common for generalized plugins like this to have hooks to allow specialized plugins to override them under certain circumstances. For example, if another plugin wants to spawn a container as part of an event and control its loot, it should be able to signal that BetterLoot should ignore that specific container.

Exactly! :)

IE event containers that spawn specialized loot for the event.

don't mind pookins. he's just a toxic condescending pos. just block him like i did.