Centering Commands

Hi. Just wondering how you can center a command's text? For example, in my menu, I want to center the command names rather than them being on the left side. is there a way to do this? Thanks.
Download yanfly's main menu manager plugin.
    Window_MenuCommand.prototype.itemTextAlign = function() {


    return 'center';


    };
Window_MenuCommand.prototype.itemTextAlign = function() {
    return 'center';


};

Ninja'd 😳
Download yanfly's main menu manager plugin.
oh, this is about javascript, not plugin...  😛   😛   😛
Thanks a lot everyone who helped. Works fine now 😀

Original thread: https://forums.rpgmakerweb.com/threads/centering-commands.55010/