System Information
Field | Value |
---|---|
Operating System | Linux - Debian GNU/Linux 12 on x86_64 |
Product | AMP ‘Decadeus’ v2.4.7.0 (Mainline) |
Virtualization | HyperV |
Application | Project Zomboid |
Module | GenericModule |
Running in Container | No |
Current State | Ready |
Problem Description
Issue
I’m creating a PZ server with mods, and i want to create a way to reboot when mod updates.
As i can see there is a way to send a command to pz server console. It’s there any way to catch the answer? Because if i send the command “CheckModsNeedUpdate” the console answer if it is needed or not this way
command entered via server console (System.in): “CheckModsNeedUpdate”
CheckModsNeedUpdate: Checking…
Checking started. The answer will be written in the log file and in the chat
CheckModsNeedUpdate: Mods updated
If there is any way AMP can catch the answer of this command?
Thank you
Reproduction Steps
- Create a time trigger every 10 minutes
- Send a command to PZ console
- Catch the command response and store it into a variable
- Add another trigger to check the value of the stored variable
- Reboot the server if the value is Need Update