Spoiler
PREVIOUS PROBLEM:

Line 125 has this on:
optAddOnMainMenu: (PluginManager.parameters('trevas skill tree')['OptAddOnMainMenu']).toLowerCase(),

Line 125 has this on:
optAddOnMainMenu: (PluginManager.parameters('trevas skill tree')['OptAddOnMainMenu']).toLowerCase(),
UPDATE:
While messing around with it, my friend managed to get somewhere, but now there is another error (The option to the Skill Tree shows up on the menu now as well).

Line 286: if (this._data[index] != "vazio") {
Line 281: this.drawAllItems();
Line 162: this.windowSkillTree.refresh(this.actor());
My friend asked me not to share the plugin publically so I can't paste it here fully.
What can be done to fix this error?
PS: 'vazio' means 'empty' in portuguese