If you’re running the script from the server Settings Web page in the Scripts > Persistent Scripts section, you’re running the script as an AC (assignment client) script.
For AC scripts, the print() statement output goes into the server logs, not Interface’s program logs. On Window, you can find the server logs by right-clicking the server icon in the system tray and selecting “View Logs”. Alternatively, see the following directory on your server PC: \AppData\Roaming\High Fidelity\Server Console\logs
When I run your script as an AC script I get the following error in the logs:
[cdisconnectNonMeggaWorldUser.js] [UncaughtException evaluate] Error: Can't find variable: Account
This is because the
Account API is not available for use in AC scripts.