diff options
author | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-25 19:01:14 +0000 |
---|---|---|
committer | Dinnerbone <dinnerbone@dinnerbone.com> | 2011-02-25 19:01:14 +0000 |
commit | 685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4 (patch) | |
tree | 19800d959ab0fb16324ceea7af06dd198000193c /src/main/java/net/minecraft | |
parent | 2419e0b8a79985552ab7ff5ac74f442f59a4eb6e (diff) | |
download | craftbukkit-685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4.tar craftbukkit-685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4.tar.gz craftbukkit-685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4.tar.lz craftbukkit-685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4.tar.xz craftbukkit-685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4.zip |
Added ">" to input command line, separated it from output buffer properly
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/ThreadCommandReader.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ThreadCommandReader.java b/src/main/java/net/minecraft/server/ThreadCommandReader.java index 7277758e..3605c997 100644 --- a/src/main/java/net/minecraft/server/ThreadCommandReader.java +++ b/src/main/java/net/minecraft/server/ThreadCommandReader.java @@ -3,6 +3,7 @@ package net.minecraft.server; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; +import java.io.PrintStream; import java.util.logging.Level; import java.util.logging.Logger; import jline.ConsoleReader; @@ -21,11 +22,9 @@ public class ThreadCommandReader extends Thread { try { ConsoleReader reader = a.reader; String line = null; - - while ((!this.a.g) && (MinecraftServer.a(this.a)) && ((line = reader.readLine()) != null)) { + while ((!this.a.g) && (MinecraftServer.a(this.a)) && ((line = reader.readLine(">", null)) != null)) { this.a.a(line, (ICommandListener) this.a); } - } catch (IOException ex) { Logger.getLogger(ThreadCommandReader.class.getName()).log(Level.SEVERE, null, ex); } |