Store TP data

Discussion in 'Spigot Plugin Development' started by SourGoose, Jun 10, 2015.

  1. Hello,
    I can't for the life of my figure out how to do this properly.
    A player is in a certain position in the overworld. I want to teleport him to a position in the nether, then immediately back to his original position.
    How do I go about doing this? How can I store the previous TP data?
  2. just save the location into a variable for example and after teleporting you can schedule another teleport to the last Location (which has been saved into the the variable)

    if you want to teleport more than one guy just make an HashMap and save player UUID/Name/Player variable with the location and after the teleport you can simply delete them from the HashMap
    #2 theTrixxter, Jun 11, 2015
    Last edited: Jun 11, 2015
    • Like Like x 1