Solved Teleport World

Discussion in 'Plugin Development' started by Aragone, Jun 25, 2019.

  1. Offline

    Aragone

    Hello everyone!

    I'm trying to make a plugin to teleport a player to an other world when he is at specifics coordinates. I don't know why, it doesn't work. I don't have any error message in the console, just it doesn't work. Thanks for you help.

    https://pastebin.com/raw/W9xYShnk
     
    Last edited: Jun 25, 2019
  2. Offline

    KarimAKL

  3. Offline

    Aragone

    @KarimAKL yes nothing as an error message
     
  4. Offline

    KarimAKL

    @Aragone I mean, did you print a message when the player got teleported? Try printing the location.
    Maybe loading the world before teleporting? Though i would think it already does that.
     
  5. Offline

    Aragone

    I will try. And how to load the world? Just by opening it in singleplayer?
     
  6. Offline

    KarimAKL

  7. Offline

    Aragone

    I tried to load the world and print the location and nothing is running

    I loaded the world in the public void onEnable() and I have that. The world_ressource looks loaded but the area is not spawning I think.

    It's ok I found why it didn't work. That was because I put a double into the arguments And I had to put an int.
     

    Attached Files:

    Last edited by a moderator: Jun 26, 2019

Share This Page