Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"An item with the same key has already been added. Key: peanutinfection" #12

Open
Oyplap opened this issue Jun 11, 2021 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@Oyplap
Copy link

Oyplap commented Jun 11, 2021

Haven't tested peanutinfection in a while. I encountered this issue when i typed this command in console: "reload all".

The following error was shown twice:

[2021-06-11 11:50:54.184 +02:00] [ERROR] [Exiled.API] An error has occurred while registering a command: System.ArgumentException: An item with the same key has already been added. Key: peanutinfection
at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <9577ac7a62ef43179789031239ba8798>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0
at CommandSystem.CommandHandler.RegisterCommand (CommandSystem.ICommand command) [0x00039] in <36b434bb3b08466c8dd3fe3113bbc47e>:0
at Exiled.API.Features.Plugin`1[TConfig].OnRegisteringCommands () [0x0010d] in :0

@joker-119
Copy link
Owner

It appears to be an issue with the plugin not properly unregistering it's commands when unloaded, I'll work on fixing that at some point, but you should be able to simply ignore the error for the time being.

@joker-119 joker-119 self-assigned this Jun 21, 2021
@joker-119 joker-119 added the bug Something isn't working label Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants