You have a lot of unnecessary stuff there - I don't know what your knowledge/skill level is, so I mean no insult, but I wonder how much of that is you trying to copy formats that you've seen in other places.
For something this simplistic, there's no reason for you to create an IIFE or define plugin parameters.
If this
were working correctly, why would you want this? By calling the original function, it would print the skill icon then name...and then your code beneath would print it again.
All you need to do is take this:
Code:
Window_Base.prototype.drawItemName = function(item, x, y, width) {
width = width || 312;
if (item) {
var iconBoxWidth = Window_Base._iconWidth + 4;
this.resetTextColor();
this.drawText(item.name, x + iconBoxWidth, y, width - iconBoxWidth);
this.drawIcon(item.iconIndex, x + 2, y + 2);
}
};
and paste it into Notepad. Save it as anything_you_want.js and add it in your plugin manager.
Save your project and start a new play test, check that it looks how you want.
Let us know if you still have any issues.
At a quick glance, I'm not sure what that open parenthesis at the very beginning of your code is for, but it never appears to be closed. The same is true for the open brace before "var parameters" so I don't think any of your code is getting run due to the incomplete syntax.