mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-21 07:59:26 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@7f490a6 Updated Upstream (Paper) PurpurMC/Purpur@4f2fe31 Updated Upstream (Paper) PurpurMC/Purpur@4b57bed Updated Upstream (Paper) PurpurMC/Purpur@d49ca07 Updated Upstream (Paper) Leaves Changes: LeavesMC/Leaves@c19e742 Fix extra yggdrasil LeavesMC/Leaves@8be1ec2 1.21.1 LeavesMC/Leaves@8019141 Old BlockEntity behaviour LeavesMC/Leaves@a58f059 Better config command LeavesMC/Leaves@1a110f5 Fix #281 LeavesMC/Leaves@a8e403d Remove some performance LeavesMC/Leaves@f552216 Update Paper LeavesMC/Leaves@202c986 [release-skip] Fix Maven publish LeavesMC/Leaves@e199edf Fix Spigot EndPlatform destroy (#313) LeavesMC/Leaves@595afb8 Fakeplayer API update LeavesMC/Leaves@39440b4 Update bot API (#318) LeavesMC/Leaves@76d5ab8 Try fix (#309) LeavesMC/Leaves@9338453 Fix crash cause by fake player and phantom spawner. (#331) LeavesMC/Leaves@3436062 Fix bytebuf api, fix #334 (#335) LeavesMC/Leaves@c33b547 New FakePlayer (#337) LeavesMC/Leaves@615efda Update Paper LeavesMC/Leaves@56d306c Fix Stackable ShulkerBoxes (#329) LeavesMC/Leaves@23c47a3 Enhance bot api, fix somethings (#341) LeavesMC/Leaves@bff6bbd Update Paper LeavesMC/Leaves@dd487df Fix fakeplayer use action (#345) LeavesMC/Leaves@2e311f0 Update Paper LeavesMC/Leaves@b8cd2ec Fix CommandUtil(#348) (#349) LeavesMC/Leaves@95e6661 Make lever and cocoa wrench-able by shear (#351) LeavesMC/Leaves@6c5cc79 Fix #353 LeavesMC/Leaves@b33c46c Update Paper LeavesMC/Leaves@f830919 Update Paper LeavesMC/Leaves@9d90760 Revert raid changes (#361) LeavesMC/Leaves@d2b7fab Fix Incorrect Collision Behavior for Block Shape (fix #344) (#363) LeavesMC/Leaves@6a9d61b Allow anvil destroy item entities and disable vault blacklist (#364) LeavesMC/Leaves@e745ddd Update Paper LeavesMC/Leaves@ab75141 Fix fakeplayer rotation action (#365) LeavesMC/Leaves@423df96 Fix bot changing dimension (#366)
44 lines
1.4 KiB
Diff
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: 423df9642eca64b3e30400315a790c19160db489
|
|
|
|
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());
|
|
+ }
|
|
+}
|