Fix stupid idiot things
This commit is contained in:
parent
1595c1fa99
commit
9488f754d4
@ -41,7 +41,7 @@ namespace IW4MAdmin.Application.Misc
|
||||
|
||||
if (value is object[] array && array.All(item => item is double d && AsInteger(d) != null))
|
||||
{
|
||||
castValue = array.Select(item => (int) item).ToArray();
|
||||
castValue = array.Select(item => AsInteger((double)item)).ToArray();
|
||||
}
|
||||
|
||||
if (!_config.ContainsKey(_pluginName))
|
||||
|
@ -61,21 +61,23 @@ let plugin = {
|
||||
"hello"
|
||||
];
|
||||
|
||||
_configHandler.SetValue("SampleIntegerValue", 123);
|
||||
_configHandler.SetValue("SampleStringValue", this.author);
|
||||
_configHandler.SetValue("SampleFloatValue", this.version);
|
||||
_configHandler.SetValue("SampleNumericalArray", intArray);
|
||||
_configHandler.SetValue("SampleStringArray", stringArray);
|
||||
this.configHandler = _configHandler;
|
||||
|
||||
this.logger.WriteDebug(_configHandler.GetValue("SampleIntegerValue"));
|
||||
this.logger.WriteDebug(_configHandler.GetValue("SampleStringValue"));
|
||||
this.logger.WriteDebug(_configHandler.GetValue("SampleFloatValue"));
|
||||
this.configHandler.SetValue("SampleIntegerValue", 123);
|
||||
this.configHandler.SetValue("SampleStringValue", this.author);
|
||||
this.configHandler.SetValue("SampleFloatValue", this.version);
|
||||
this.configHandler.SetValue("SampleNumericalArray", intArray);
|
||||
this.configHandler.SetValue("SampleStringArray", stringArray);
|
||||
|
||||
_configHandler.GetValue("SampleNumericalArray").forEach((element) => {
|
||||
this.logger.WriteDebug(this.configHandler.GetValue("SampleIntegerValue"));
|
||||
this.logger.WriteDebug(this.configHandler.GetValue("SampleStringValue"));
|
||||
this.logger.WriteDebug(this.configHandler.GetValue("SampleFloatValue"));
|
||||
|
||||
this.configHandler.GetValue("SampleNumericalArray").forEach((element) => {
|
||||
this.logger.WriteDebug(element);
|
||||
});
|
||||
|
||||
_configHandler.GetValue("SampleStringArray").forEach((element) => {
|
||||
this.configHandler.GetValue("SampleStringArray").forEach((element) => {
|
||||
this.logger.WriteDebug(element);
|
||||
});
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user