diff --git a/patches/server/0221-Redirect-System.out-calls-to-plugin-loggers.patch b/patches/server/0221-Redirect-System.out-calls-to-plugin-loggers.patch index 0b21261ea..05ab864a6 100644 --- a/patches/server/0221-Redirect-System.out-calls-to-plugin-loggers.patch +++ b/patches/server/0221-Redirect-System.out-calls-to-plugin-loggers.patch @@ -21,7 +21,7 @@ index 7b66b301b10158e9c715834b24bdfab1610f4a94..d6502173bebba1a1c62deea2e14b40d7 thread.setDaemon(true); diff --git a/src/main/java/net/pl3x/purpur/PurpurPrintStream.java b/src/main/java/net/pl3x/purpur/PurpurPrintStream.java new file mode 100644 -index 0000000000000000000000000000000000000000..42dfcb704dd3aeb1843db368054925ed1962971a +index 0000000000000000000000000000000000000000..f88da0b86a683b25d429ceea4a36d6dde12b2b56 --- /dev/null +++ b/src/main/java/net/pl3x/purpur/PurpurPrintStream.java @@ -0,0 +1,65 @@ @@ -77,7 +77,7 @@ index 0000000000000000000000000000000000000000..42dfcb704dd3aeb1843db368054925ed + @Override + public void println(String line) { + try { -+ // Get the the JavaPlugin that "owns" the calling class ++ // Get the JavaPlugin that "owns" the calling class + JavaPlugin plugin = JavaPlugin.getProvidingPlugin(STACKWALKER.getCallerClass()); + + // Instead of just printing the message, send it to the plugin's logger