Exiled-Team / Common-Utils

Common Utilities for Exiled Servers.
19 stars 30 forks source link

Cannot have the same config for Coarse/Rough in 914 #7

Closed PatPeter closed 4 years ago

PatPeter commented 4 years ago

If you want the same configuration on both Coarse/Rough or Fine/Very Fine, it will result in an exception:

util_914_roles: ClassD-Scp0492:Rough, Scientist-Scp0492:Rough, ClassD-Scp0492:Coarse, Scientist-Scp0492:Coarse
[2020-03-09 00:54:15.894 -05:00] [ERROR] [EXILED]: Plugin Common-Utils threw an exception while enabling System.ArgumentException: An item with the same key has already been added. Key: ClassD-Scp0492
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <437ba245d8404784b9fbab9b439ac908>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
  at Common_Utils.KConf.ExiledConfiguration.GetDictonaryValue (System.String value) [0x000bf] in <fb1f5fe7d550469d9ae8b3ea6c3511f6>:0
  at Common_Utils.Plugin.OnEnable () [0x0022f] in <fb1f5fe7d550469d9ae8b3ea6c3511f6>:0
  at EXILED.PluginManager.OnEnable () [0x00019] in <b3d1aeb696384a3e8f70fc68153c9555>:0
Kade-github commented 4 years ago

meh, could care less atm. Maybe joker would like to do that, but I wouldn't myself. It would break most util configs.