The raid and adventure scripts work very differently in the v20.1 plugin. The v19 code youre inputting no longer exists. You should check the tutorial in the PokeCommunity thread where I explain all of this.
Thanks I didn't saw that the link for the set up was for the v19. I was able to find the link for the v20.1 and now I got it working.