My code to send a player to another server is this:
But is not doing anything... please help!
Code (text):
public static void sendToServer(Player player, String servername){
try{
out.writeUTF("ConnectOther");
out.writeUTF(player.getName());
out.writeUTF(servername);
}catch(Exception ex){
ex.printStackTrace();
}
}
try{
out.writeUTF("ConnectOther");
out.writeUTF(player.getName());
out.writeUTF(servername);
}catch(Exception ex){
ex.printStackTrace();
}
}