mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 09:51:12 +01:00
26 lines
721 B
Java
26 lines
721 B
Java
package net.minecraft.server;
|
|
|
|
import java.io.*;
|
|
|
|
public class ThreadCommandReader extends Thread {
|
|
|
|
final MinecraftServer a; /* synthetic field */
|
|
|
|
public ThreadCommandReader(MinecraftServer minecraftserver) {
|
|
super();
|
|
a = minecraftserver;
|
|
}
|
|
|
|
public void run() {
|
|
BufferedReader bufferedreader = new BufferedReader(((java.io.Reader) (new InputStreamReader(System.in))));
|
|
String s = null;
|
|
|
|
try {
|
|
while (!a.g && MinecraftServer.a(a) && (s = bufferedreader.readLine()) != null) {
|
|
a.a("#" + s, ((ICommandListener) (a)));
|
|
}
|
|
} catch (IOException ioexception) {
|
|
ioexception.printStackTrace();
|
|
}
|
|
}
|
|
}
|