How to let a lift Plugin not mess with /back

Discussion in 'Spigot Plugin Development' started by Atterbhog, Oct 13, 2018.

  1. Hello there!
    How can I accomplish my self-written Lift-Plugin from messing with /back. Currently I teleport a player with Player.teleport(Location), which sets the last location to the /back location. Is there any way I can teleport a Player other than with Player.teleport?
  2. Set their position to the location you want to teleport them too, I'm not sure if this doesn't mess with /back but it seems like it shouldn't. Just give it a test
  3. Verify if the player teleport to another location with a certain distance with a PlayerMoveEvent, if it is, save the location for the player in a Map and teleport the player when he write /back
  4. How do I set a Players position?
  5. player#teleport(Location)
  6. He literally just said that doesn't work.

Share This Page