3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 21:40:08 +01:00
Paper/src/main/java/net/minecraft/server/ThreadCommandReader.java

27 Zeilen
721 B
Java

2011-01-19 01:42:49 +01:00
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();
}
}
}