MZ Main Menu Core: calling a common event without having to choose the character

Hi! I managed to add menus in the "Main Menu Core", more specifically one that brings a common event. However, before the menu closes and the command is executed, I need to choose a character and that shouldn't happen. I've rummaged through the plugin's support page and will probably have to change something in "JS Personal Code", but I have no idea what that is.

Thanks in advance for those who help me!
never edit the core files of your project unless you know what you do.

if you have 1 actor, you need to change the way o select it directy,
or if have 1 or less, else if it's more, select a character.

but what exactly are you try to do in the menu after the common event is run?
and what do you have currently because, you need something fitable than
adding a function or link back to the function if you add it.
Here is the thing:

I click in "Time", which has the duty to execute a common event.

index.php


After that, this screen appears, for me to choose a character:

2.jpg


Only after this, the click, the event runs:

3.jpg


The part about having to choose a character doesn't make sense and that's where I want help.
👋 Make sure JS: Personal Code is blank.

Plugin link, for reference: http://www.yanfly.moe/wiki/Main_Menu_Core_VisuStella_MZ
I was using the second "common events" tab of the plugin. I switched to the first one and it worked perfectly. I think one is different from the other. The first doesn't ask to select characters. I think problem solved.

Original thread: https://forums.rpgmakerweb.com/threads/main-menu-core-calling-a-common-event-without-having-to-choose-the-character.142067/