diff options
author | ㄗㄠˋ ㄑㄧˊ <[email protected]> | 2020-05-23 11:23:27 +0800 |
---|---|---|
committer | Aikar <[email protected]> | 2020-06-20 15:46:25 -0400 |
commit | b2afcf1194f673c6609e793895aaa20d60433dcd (patch) | |
tree | 848d55bf1cab2149a4c19702b8e97da8e753dbf6 | |
parent | c7e4c45f26d3daf505a9a548420aa3bcccfb55a1 (diff) | |
download | Paper-b2afcf1194f673c6609e793895aaa20d60433dcd.tar.gz Paper-b2afcf1194f673c6609e793895aaa20d60433dcd.zip |
Add history file for terminal
-rw-r--r-- | Spigot-Server-Patches/0148-Use-TerminalConsoleAppender-for-console-improvements.patch | 5 | ||||
-rw-r--r-- | Spigot-Server-Patches/0546-Inventory-getHolder-method-without-block-snapshot.patch (renamed from Spigot-Server-Patches/0540-Inventory-getHolder-method-without-block-snapshot.patch) | 0 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Spigot-Server-Patches/0148-Use-TerminalConsoleAppender-for-console-improvements.patch b/Spigot-Server-Patches/0148-Use-TerminalConsoleAppender-for-console-improvements.patch index 243acd00b3..ce4c77d9fe 100644 --- a/Spigot-Server-Patches/0148-Use-TerminalConsoleAppender-for-console-improvements.patch +++ b/Spigot-Server-Patches/0148-Use-TerminalConsoleAppender-for-console-improvements.patch @@ -75,10 +75,10 @@ index 3554314526b3f33ad02df2adfd42d45118d75526..aeaceac771644ece5365d07be77f4481 <groupId>org.apache.maven.plugins</groupId> diff --git a/src/main/java/com/destroystokyo/paper/console/PaperConsole.java b/src/main/java/com/destroystokyo/paper/console/PaperConsole.java new file mode 100644 -index 0000000000000000000000000000000000000000..cd6e259239b068f1e1b33f45004cf5d37ac5a1a3 +index 0000000000000000000000000000000000000000..74ed02fa9296583977bb721014b10ff8b708b43c --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/console/PaperConsole.java -@@ -0,0 +1,40 @@ +@@ -0,0 +1,41 @@ +package com.destroystokyo.paper.console; + +import net.minecraft.server.DedicatedServer; @@ -99,6 +99,7 @@ index 0000000000000000000000000000000000000000..cd6e259239b068f1e1b33f45004cf5d3 + 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)) + ); + } diff --git a/Spigot-Server-Patches/0540-Inventory-getHolder-method-without-block-snapshot.patch b/Spigot-Server-Patches/0546-Inventory-getHolder-method-without-block-snapshot.patch index 24e430cfb5..24e430cfb5 100644 --- a/Spigot-Server-Patches/0540-Inventory-getHolder-method-without-block-snapshot.patch +++ b/Spigot-Server-Patches/0546-Inventory-getHolder-method-without-block-snapshot.patch |