DarkMultiPlayer Client

DarkMultiPlayer Client

38.8k Downloads

On restart command given server crashes with same item warning

Neouni opened this issue ยท 2 comments

commented

[08:11:51][INFO] : Command input: /restart
[08:11:51][INFO] : Restarting
[08:11:51][INFO] : Force stopping HTTP server...
[08:11:52][INFO] : Starting DMPServer e420b8d, protocol 18
[08:11:52][INFO] : Loading universe...
[08:11:52][INFO] : Done!
[08:11:52][DEBUG] : Loading plugins!
[08:11:52][FATAL] : Error in main server thread, Exception: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DarkMultiPlayerServer.DMPPluginHandler.LoadPlugins()
at DarkMultiPlayerServer.Server.Main()


On manual start after, it runs fine

commented

Maybe clearing the dictionary when the server starts could fix that.

commented

Fixed via e17d56e