Plugin Error

This code:

var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
// to be overridden by plugins
_Game_Interpreter_pluginCommand.apply(this);

}:

Is coming up with this error:

Cannot read property 'trim' of undefined

Can anyone see what's going wroung?
Probably, the error is this line:

Code:
_Game_Interpreter_pluginCommand.apply(this);

Try this one:

Code:
_Game_Interpreter_pluginCommand.apply(this, arguments);

or

Code:
_Game_Interpreter_pluginCommand.call(this, command, args);
amazing,

_Game_Interpreter_pluginCommand.call(this, command, args);

Is what I tried before and what I felt should work but

_Game_Interpreter_pluginCommand.apply(this, arguments);

Seems to be working now, on to the next issues

Original thread: https://forums.rpgmakerweb.com/threads/plugin-error.86018/