Command block - Only work on some dimension

Hello ! So i want to make a minigame server. There is already multiple world :

  • world
  • nether
  • pvp
  • minage

I want to make a command block / datapack that only work on the player located in "pvp" for exemple, how can i do that ? I tried to put a command block at pvp and run :

/execute positioned 93 61 93 run execute at @a[x=107,y=59,z=93,dx=100,dy=100,dz=100] run title @a title "oui"

But every player no matter what get affected by that. I even tried :

/execute positioned 93 61 93 run execute at @a[distance=0..10] run title @a title "oui"

But still the game does not make any differentiation.. How could i fix that please ? Thanks !

Continue to help post