How do I disable the "options" tab from the game menu?

Hello folks! I'm working on a yume nikki fangame in RPG maker MV and I am stumped on how I disable the "options" tab from the main menu. And for specification, when I say main menu I am not talking about the title menu, but rather the one that appears in-game.
Thanks for reading!
Paste the below into a text editor, save as a *.js file, include as a plugin.
Code:
Window_MenuCommand.prototype.makeCommandList = function() {
    this.addMainCommands();
    this.addFormationCommand();
    this.addOriginalCommands();
//    this.addOptionsCommand();
    this.addSaveCommand();
    this.addGameEndCommand();
};
Alternative:
Spoiler: plugin code
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Remove options command from pause menu.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/162887/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (function(alias) {
  Window_MenuCommand.prototype.needsCommand = function(name) {
    if (name === "options")
      return false;
    return alias.apply(this, arguments);
  };
})(Window_MenuCommand.prototype.needsCommand);
This approach stands a slightly better chance of being compatible with other plugins.

If you instead want to conditionally disable or remove it, e.g. make it show only when a switch is on, you'll need a slightly different solution.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-disable-the-options-tab-from-the-game-menu.162887/