From b2afcf1194f673c6609e793895aaa20d60433dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?= Date: Sat, 23 May 2020 11:23:27 +0800 Subject: [PATCH] Add history file for terminal --- ...se-TerminalConsoleAppender-for-console-improvements.patch | 5 +++-- ...-Inventory-getHolder-method-without-block-snapshot.patch} | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename Spigot-Server-Patches/{0540-Inventory-getHolder-method-without-block-snapshot.patch => 0546-Inventory-getHolder-method-without-block-snapshot.patch} (100%) 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 243acd00b..ce4c77d9f 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 org.apache.maven.plugins 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 similarity index 100% rename from Spigot-Server-Patches/0540-Inventory-getHolder-method-without-block-snapshot.patch rename to Spigot-Server-Patches/0546-Inventory-getHolder-method-without-block-snapshot.patch