Send Player to another Server

Discussion in 'Spigot Plugin Development' started by MultiDJRoni, Jun 9, 2016.

  1. Hey!

    Im conding on a Item witch send the Player who Clicks on the Item to the Server "1vs1"

    My Code:
    Code (Text):
                        if(e.getItem().getItemMeta().getDisplayName().equalsIgnoreCase(ChatColor.DARK_GREEN + "1vs1")){
                            Player p = e.getPlayer();
    But it does not get the "Out": [​IMG]

    I also tried it without the Player p = e.getPlayer() and the out.writeITF(p).

    Here is the full code of the LListener Class:
    And Here of the Main:

    Thanks for your help ;)

    If that is the wrong Forum for that, please move it :)
  2. MiniDigger


    reread this
    you need to define your output stream, register then channel and stuff.
  3. Remove "out.writeUTF(p);"
  4. Inkzzz

    Resource Staff

    Define the variable and read above