Modified the item menu categories.

I have removed the Weapon and Armor categories from the item menu. How can I center the Item and Key Item categories evenly?
Screenshot (60145).png
Patch or override the maxCols method.

You haven't shown your current plugin code, so here's a complete one if needed:
Spoiler: plugin code
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Remove specific categories from item category window.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/172094/
 * @help Free to use and/or modify for any project, no credit required.
 */
void (function() {
"use strict";
  /** Category symbols to skip. @type {string[]} */
  const SKIP = ["weapon", "armor"];

  // Patch - skip marked categories.
  const alias_addCommand = Window_ItemCategory.prototype.addCommand;
  Window_ItemCategory.prototype.addCommand = function(name, symbol) {
    if (!SKIP.contains(symbol))
      alias_addCommand.apply(this, arguments);
  };

  // Patch - reduce columns by number of categories skipped.
  const alias_maxCols = Window_ItemCategory.prototype.maxCols;
  Window_ItemCategory.prototype.maxCols = function() {
    return alias_maxCols.apply(this, arguments) - SKIP.length;
  };

})();
(Editing the core scripts directly is bad practice for reasons such as tracking/debugging edits and porting them to other projects.)

Original thread: https://forums.rpgmakerweb.com/threads/modified-the-item-menu-categories.172094/