Is there anything that gets called when a game is turned into realistic via /realistic 1 ? Or perhaps another way around?
I want to call a procedure when /realistic 0 or /realistic 1 is entered. It doesn't matter if /realistic 1 is typed when it's already realistic. The procedure checks for itself if it's on or off and writes the corresponding maximum health in a variable (150 if normal, 65 if real). That's why it doesn't matter if realistic didn't actually change but the procedure is still called.
If there's a work-around that can call the procedure when there's a chance realistic is changed then that'd work too.
I tried to check for if /realistic 1 or /realistic 0 is typed as a command but that didn't do anything :/
Also, ActivateServer doesn't get called when you do /realistic 1 or 0.
...I don't want to have to check for it every second (which is an alternative). Currently I have it so you have to type /real as admin and my procedure gets called.
For that matter, how do you do the same for /survival, /advance, and /gamemode ?