Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
reverted # from server console
Dieser Commit ist enthalten in:
Ursprung
eace2d0f8a
Commit
abb3c5eee6
2
.gitignore
vendored
2
.gitignore
vendored
@ -14,3 +14,5 @@
|
||||
|
||||
# vim
|
||||
.*.sw[a-p]
|
||||
|
||||
/world
|
@ -449,7 +449,7 @@ public class MinecraftServer implements ICommandListener, Runnable {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
a.info("Unknown console command. Type \"#help\" for help.");
|
||||
a.info("Unknown console command. Type \"help\" for help.");
|
||||
}
|
||||
} while (true);
|
||||
}
|
||||
|
26
src/main/java/net/minecraft/server/ThreadCommandReader.java
Normale Datei
26
src/main/java/net/minecraft/server/ThreadCommandReader.java
Normale Datei
@ -0,0 +1,26 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren