Hello. Faced with the problem that cannot set the value in an array. To be honest, I don't even know how it's better to fly, came from php. Alleged code:
//name is the value in which is written the name of the user. this.cfg - public variable, which is the configuration. set - subfunction of the Config class that sets the value. Don't know what it is, okay.
this.cfg.set(name, [1, 1,1]);
//tell me how to implement something like that.