Return player to previous position on world change (MultiVerse)

Discussion in 'Plugin Requests' started by Mike724, Apr 29, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Mike724

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The issue I'm having is that when players teleport to another world, it does not save the position they were in, meaning that they get teleported to spawn. Here is an example:

    -- This is what it's doing now:
    1. Player is in the survival world
    2. Player teleports to another world
    3. Player teleports back to the suvival world, and is put at spawn.

    -- This is what I want to happen:
    1. Player is in the survival world
    2. Player teleports to another world
    3. Player teleports back to the suvival world, and is put at their previous position in this world (where they were when they teleported in step 1)
  2. Offline

    zathrus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    this actually works as /back command in AdminCMD and my CommandsEX, but only if they did not teleport elsewhere in the meanwhile (/back only remembers the last TP location)
  3. Offline

    Mike724

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  4. Offline

    zathrus

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    does it store more than 1 back position?
  5. Offline

    Mike724

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No, not exactly.

    The plugin just watches for when a player changes worlds, once they do, it saves the position that they were in when they changed worlds/teleported to another world.

    Then later on when a player wants to get back to that world, they type /world [world name].

    Any teleportation that takes place within the same world will not be saved.

    This post has been edited 1 time. It was last edited by Mike724 May 1, 2012.
Thread Status:
Not open for further replies.

Share This Page