Teleport after connect

Discussion in 'Plugin Development' started by Qearlot, Aug 13, 2018.

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

    Qearlot

    How teleport after connect?
     
  2. Offline

    Zombie_Striker

    @Qearlot
    1. on PlayerJoinEvent.
    2. Create a new bukkit runnable. Run the task later, and set the delay to 1 tick. This will make sure the player is connected before you teleport them
    3. Then, in the runnable, just teleport them to the location you want.
     
  3. Offline

    Qearlot

    But I have minigame at server, and Player must select where to teleport after connecting. 4 games at one server
    how make this?
     
  4. Offline

    Zombie_Striker

    Then do the same thing as above, but instead of teleporting in the runnable, open up an Inventory to be uses as a GUI, where the icon that the player clicks corresponds to the location they will be teleported to.
     
  5. Offline

    Qearlot

    I dont understand what you mean, pls code :3

    in which plugin should I do this? In the plugin that connects or already in the game on another server?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
  6. Online

    timtower Administrator Administrator Moderator

    Why another server?
     
  7. Offline

    Qearlot

    I have two servers. First - hub, second - mini-game. In second server can play four games
     
  8. Online

    timtower Administrator Administrator Moderator

    Sounds like Bungeecord.
     
  9. Offline

    Qearlot

    I use bungee cord for teleport, but i wanna teleport player to location depending on the click to item
    If item name "1" -> connect to the server and teleport to location 1
    If item name "2" -> connect to the server and teleport to location 2
     
  10. Online

    timtower Administrator Administrator Moderator

    Locked
    Bungeecord requires offline mode.
    Offline mode is not supported by Bukkit.
     
Thread Status:
Not open for further replies.

Share This Page