9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-21 16:09:19 +00:00
Files
Leaf/patches/server/0030-Leaves-Server-Utils.patch
Dreeam cb54a09d9d Updated Upstream (Paper/Gale/Purpur/Leaves)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@042f15f [ci skip] chore: fix incorrect commit hash in PR builds (#11198)
PaperMC/Paper@4e6a2a1 Check for block type in SculkSensorBlock#canActivate
PaperMC/Paper@77a5779 Updated Upstream (Bukkit/CraftBukkit/Spigot) (#11197)
PaperMC/Paper@4d7cef3 Fix source of knockback for spigot events (#11176)
PaperMC/Paper@b1b5d4c Check shooter in configurable projectile relative velocity patch

Gale Changes:
Dreeam-qwq/Gale@33fb580 Updated Upstream (Paper)
Dreeam-qwq/Gale@3a5ff70 Updated Upstream (Paper)

Purpur Changes:
PurpurMC/Purpur@7950960 Updated Upstream (Paper)
PurpurMC/Purpur@73a90e8 Updated Upstream (Paper)
PurpurMC/Purpur@75e81d8 deprecate old anvil api methods
PurpurMC/Purpur@4e55e26 final 1.21 Paper upstream

Leaves Changes:
LeavesMC/Leaves@26e31ff Update fakeplayer, and fix #298
LeavesMC/Leaves@af01380 And make #297 happy
LeavesMC/Leaves@1782bd4 [ci-skip] Serve immediately (#295)
2024-08-11 18:21:21 +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: 1782bd4806074628c93c2ef265e028b4fbdba081
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());
+ }
+}