Hello,
Could you please create a hook, or hooks to work with the Guarded Crate plugin? I asked the author of that plugin to have it work with this plugin, but he replied with this...
"Well, I don't mind to add this, but that plugin has no hooks to listen to, so first you should suggest to @Bazz3l add hooks, like this, for example:"
public void StartEvent(Vector3 position)
{
_position = position;
SpawnCrate();
RefillLoot();
StartSpawnRoutine();
StartDespawnTimer();
Interface.CallHook("OnCrateEventStarted", _eventSettings.EventName, position);
Message("EventStarted", _eventSettings.EventName, GetGrid(_position), GetTime((int)_eventSettings.EventDuration));
}
public void StopEvent(bool completed = false)
{
_eventTimer?.Destroy();
StopSpawnRoutine();
DespawnPlane();
DespawnMarker();
DespawnCrate(completed);
DespawnAI();
_plugin?.DelEvent(this);
Interface.CallHook("OnCrateEventEnded", _eventSettings.EventName, position);