Getting console input

Discussion in 'Plugin Development' started by dag10, Jan 30, 2011.

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

    dag10

    Hi

    I'm trying to have my plugin respond to commands typed into System.in. I made a Scanner on System.in in a thread. I noticed, however, that my Scanner and Minecraft's default Scanner are "taking turns" on responding to typed lines (i.e. I type "help" and get my plugin's help, then I type "help" again and get the default help, and so on).

    Is there any way to have my Scanner work with the default Scanner? I'm thinking of somehow passing lines I receive to Minecraft's built-in command handling method, but that still wouldn't allow my plugin to see lines when the default method handles it.
     
Thread Status:
Not open for further replies.

Share This Page