1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-17 02:34:30 +01:00

Add history file for terminal

This commit is contained in:
ㄗㄠˋ ㄑㄧˊ 2020-05-23 11:23:27 +08:00
parent d18935ed70
commit 4f81cb8c92

View file

@ -99,6 +99,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ protected LineReader buildReader(LineReaderBuilder builder) {
+ return super.buildReader(builder
+ .appName("Paper")
+ .variable(LineReader.HISTORY_FILE, java.nio.file.Paths.get(".console_history"))
+ .completer(new ConsoleCommandCompleter(this.server))
+ );
+ }