9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 02:49:19 +00:00
Files
Leaf/patches/server/0029-Leaves-Server-Utils.patch
Dreeam 921784f41e Updated Upstream (Leaves)
Upstream has released updates that appear to apply and compile correctly

Leaves Changes:
LeavesMC/Leaves@3992c79 Update Paper (#261)
LeavesMC/Leaves@df31300 Fix loop initialization (#263)
LeavesMC/Leaves@103beaa Disable crystal-portal proximity check (#260)
LeavesMC/Leaves@6ed6771 Fix fast resume (#258)
LeavesMC/Leaves@2ac9175 Fix Jade Protocol (#264)
LeavesMC/Leaves@fd5e8be Fix Empty ShulkerBox stack (#257)
LeavesMC/Leaves@d490f0d Update Syncmatica Protocol (#249)
LeavesMC/Leaves@072c07f Fix Empty ShulkerBox stack, again (#257)
LeavesMC/Leaves@752a60d Can disable LivingEntity aiStep alive check (#219)
LeavesMC/Leaves@1ad3ede Fix Replay not save mode, and issue #209 done
LeavesMC/Leaves@658cb0e Update alternative block placement protocol
LeavesMC/Leaves@d2a4562 Update Paper
LeavesMC/Leaves@bc4cd4f Update Servux Protocol
LeavesMC/Leaves@632f5c3 Leaves Plugin (#271)
LeavesMC/Leaves@6a3a5cd [release-skip] Enable Gradle parallel & cache
LeavesMC/Leaves@347e621 update leavesclip
LeavesMC/Leaves@21be64a Add scheduled bot remove (#274)
LeavesMC/Leaves@36813ac Update Paper
LeavesMC/Leaves@7d09a3a Fix #276 and #277
LeavesMC/Leaves@86d8553 Update PCA, fix #280
2024-07-27 17:42:28 +08:00

44 lines
1.4 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: violetc <58360096+s-yh-china@users.noreply.github.com>
Date: Tue, 13 Sep 2022 16:59:31 +0800
Subject: [PATCH] Leaves: Server Utils
TODO: Check whether Leaves's Return-nether-portal-fix.patch improves performance
and change store way to sql maybe?
Original license: GPLv3
Original project: https://github.com/LeavesMC/Leaves
Commit: 86d85530bc3cc448aea134690ae415fabec8e891
diff --git a/src/main/java/org/leavesmc/leaves/LeavesLogger.java b/src/main/java/org/leavesmc/leaves/LeavesLogger.java
new file mode 100644
index 0000000000000000000000000000000000000000..47347a3bdab2ff9818bf8198291d2dabec7da8c6
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/LeavesLogger.java
@@ -0,0 +1,24 @@
+package org.leavesmc.leaves;
+
+import org.bukkit.Bukkit;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+public class LeavesLogger extends Logger {
+ public static final LeavesLogger LOGGER = new LeavesLogger();
+
+ private LeavesLogger() {
+ super("Leaves", null);
+ setParent(Bukkit.getLogger());
+ setLevel(Level.ALL);
+ }
+
+ public void severe(String msg, Exception exception) {
+ this.severe(msg + ", " + exception.getCause() + ": " + exception.getMessage());
+ }
+
+ public void warning(String msg, Exception exception) {
+ this.warning(msg + ", " + exception.getCause() + ": " + exception.getMessage());
+ }
+}