cross server teleportation!

Discussion in 'Plugin Development' started by sfxworks, Aug 9, 2014.

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

    sfxworks

    Making a plugin that can teleport a player from one server to another (amongst other things). Anyone know how to do this that can give me a little guidance? Currently at work but I managed to pull up a few outdated plugins that were able to do this. Will look more into them when I get home, but I only have time to browse the forums for now..
     
  2. Offline

    MCForger

    sfxworks
    We do not support this topic here. Please go to your custom software's development forum and ask the question there.
     
  3. Offline

    xTigerRebornx

    sfxworks AFAIK, not possible with just Bukkit (Bungeecord/lilypad are options, but aren't supported here)
     
  4. Offline

    Skionz

    If your using bungee then heres a method...
    Code:
        public static void toServer(Player player, String targetServer) {
            ByteArrayOutputStream b = new ByteArrayOutputStream();
            DataOutputStream out = new DataOutputStream(b);
            try{
                out.writeUTF("Connect");
                out.writeUTF(targetServer);
            } catch (Exception e) {
                e.printStackTrace();
            }
            player.sendPluginMessage(Main.plugin, "BungeeCord", b.toByteArray());
           
        }
     
  5. Offline

    ResultStatic

    xTigerRebornx i wish the minecraft client would let you send players to other servers, that would fix so many problems. first i dont like bungee cord because u have to buy an additional server to run it off of which is annoying, i use to have one and multicraft would crash with it, it was a mess... another possible way to do it i think would be to proxy every packet sent and recieved using craftbukkit, which is basically what bungee does. you would have to put a listener on all the packets received from the player, then send it to the designated server. then you would have to send it back to the main server then back to the player. it could work though. that main server would be the hub server and could have the hub world on it. actually im not entirely sure how bungee cord works. can you change what server the player sends and recieves packets from with custom plugin channels and stuff?
     
Thread Status:
Not open for further replies.

Share This Page