I have a Paper-Server (1.16.4) with MultiversePlugin (and some other plugins, like EssentialsX) and multiple worlds.
Is there a command which can teleport all players of a specific world into another world?

something like (only example!):/teleport @allPlayers:World2 to world:World3

1 Answer 1


I think it should be possible using the /execute command.

/execute in <toDimension> run tp @a[nbt={Dimension:"<fromDimension>"}] <location>
  • That command does not really work. <fromDimension> must be a Dimension (like overworld,nether,..) whereas <toDimension> can point to a world. This worked partially: execute in overworld run execute in newspawn run tp @a 0 64 0 but it has same effect as execute in newspawn run tp @a 0 64 0 The problem is, ALL players from all worlds are teleported to the new world (newspawn).
    – Ben
    Commented Dec 27, 2020 at 0:42
  • I could have tought of that @a realy means all and not all in the current dimension, anyways I will try to find another way, if I can't I will delete this "answer" Commented Dec 27, 2020 at 2:02
  • @Ben Updated the answer. The player has a Dimension nbt tag which can be used to select players in a specific dimension. Commented Dec 27, 2020 at 2:13
  • @NoelNemeth Does the Dimension NBT tag work with players in other multiverse worlds with the Multiverse plugin?
    – One 2 Many
    Commented Dec 27, 2020 at 2:15
  • @ExpertCoder14 Honestly, I didn't tested it, but I think it must register the world somewhere and it would be the most logical way to follow the "standard". Commented Dec 27, 2020 at 2:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .