From d8d5dfb78ba656b86fc9e9e86e6e0d414bc727cc Mon Sep 17 00:00:00 2001 From: Madpeter Date: Sun, 10 May 2020 22:20:35 +0100 Subject: [PATCH] Adds new local event FoundMasterAvatar --- Core/bottypes/AVstorageBot.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Core/bottypes/AVstorageBot.cs b/Core/bottypes/AVstorageBot.cs index 6c9e10f..bf02ab0 100644 --- a/Core/bottypes/AVstorageBot.cs +++ b/Core/bottypes/AVstorageBot.cs @@ -216,7 +216,12 @@ namespace BSB.bottypes { if(myconfig.master == av_name) { - master_uuid = av_uuid; + if (master_uuid == UUID.Zero) + { + master_uuid = av_uuid; + FoundMasterAvatar(); + } + } } } @@ -264,5 +269,10 @@ namespace BSB.bottypes return "lookup"; } } + + protected virtual void FoundMasterAvatar() + { + + } } }