Arena register in script

Untitled

How can i use this random flag register function in a script ?

You can’t unless you use the arena plugin.

I tried to modify it because arena times are different in server. I don’t know which part i should modify to set arena times. I tried to change some parts but it didn’t work.