can i use pluginCommand in multiple JS files?

Hi guys, simple question.


Can i have same header here with other files .JS.


or i need to change variable ex: 


var jon_interpreterCommand


var jon_interpreterCommand2


var jon_interpreterCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
jon_interpreterCommand.call(this, command, args);


because , my plugin.js are very huge, so i want to split some command line to put in other js file.


What the best ways 


Tanks you
It depends on how you setup your plugins. Are you defining all your code in an anonymous function? If not, then your aliases will be global variables, and you will need to rename them.
It depends on how you setup your plugins. Are you defining all your code in an anonymous function? If not, then your aliases will be global variables, and you will need to rename them.

ok txs

Original thread: https://forums.rpgmakerweb.com/threads/can-i-use-plugincommand-in-multiple-js-files.69944/