KeyNotFoundException in OnPlayerSleepEndedSolved

Hey Guys, i don't get it, i had changed an Plugin and tried to edit it, but on the end it gives me this error ->

Failed to call hook 'OnPlayerSleepEnded' on plugin 'MyPluginFirst' (KeyNotFoundException: The given key was not present in the dictionary.)
at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <fb001e01371b4adca20013e0ac763896>:0

I had looked on other Plugins like AdminPanel but i found not an solution. Could you Help me please.

 

void OnPlayerSleepEnded(BasePlayer player)
{
if (config.isUsed) Panel(player);
}

Please Delete this topic

Locked automatically