GUI Improvements

This commit is contained in:
William Blake Galbreath
2025-01-12 17:34:29 -08:00
committed by granny
parent c5617e1e66
commit 7e8af548ea
7 changed files with 392 additions and 421 deletions

View File

@@ -1,5 +1,13 @@
--- a/net/minecraft/server/dedicated/DedicatedServer.java
+++ b/net/minecraft/server/dedicated/DedicatedServer.java
@@ -106,6 +_,7 @@
// CraftBukkit start
if (!org.bukkit.craftbukkit.Main.useConsole) return;
// Paper start - Use TerminalConsoleAppender
+ if (DedicatedServer.this.gui == null || System.console() != null) // Purpur - GUI Improvements - has no GUI or has console (did not double-click)
new com.destroystokyo.paper.console.PaperConsole(DedicatedServer.this).start();
/*
jline.console.ConsoleReader bufferedreader = DedicatedServer.this.reader;
@@ -224,6 +_,15 @@
io.papermc.paper.command.PaperCommands.registerCommands(this); // Paper - setup /paper command
this.server.spark.registerCommandBeforePlugins(this.server); // Paper - spark