Wrapper: OutputStream does not work on craftbukkit

Discussion in 'Plugin Development' started by Zelnehlun, Dec 19, 2012.

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

    Zelnehlun

    Hello,

    I am currently trying to program my own wrapper for craftbukkit. So far so good, everything works for the vanilla minecraft server software.
    But for some strange reason I am not able to send commands to the server using the OutputStream which I got from the executed progress.


    1. console.write((line + "\n").getBytes());
    2. console.flush();
    console is the OutputStream from the process, line is the string containing the command (which again works perfectly fine vanilla).

    Using RecommendedBuild
    SourceCode: http://pastebin.com/1M3Cvb77

    Maybe someone has got an idea why it might not work on craftbukkit :(
    Thanks for any kind of advice/help, sorry for any mistakes, not my native language
     
  2. Offline

    Comphenix

    I stumbled upon a thread on StackOverflow regarding this very issue. I haven't tested it myself, but it ought to work.
     
    Zelnehlun likes this.
  3. Offline

    Zelnehlun

    Thank you very much! Will include that in my plugin and mark the thread as solved if it works.

    Update: Comphenix solution works!
     
    Comphenix likes this.
Thread Status:
Not open for further replies.

Share This Page