mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
--------- Co-authored-by: violetc <58360096+s-yh-china@users.noreply.github.com> Co-authored-by: Fortern <blueten.ki@gmail.com> Co-authored-by: MC_XiaoHei <xor7xiaohei@gmail.com> Co-authored-by: Helvetica Volubi <88063803+Suisuroru@users.noreply.github.com> Co-authored-by: MC_XiaoHei <xiaohei.xor7@outlook.com>
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Lumine1909 <133463833+Lumine1909@users.noreply.github.com>
|
|
Date: Sun, 18 May 2025 19:59:11 +0800
|
|
Subject: [PATCH] Leaves Config API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
|
|
index 30488f80b98d1dba485e53601edb5cb0e23b7591..91fa30c1713795007faef73280713a33d2518487 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -3030,4 +3030,10 @@ public final class Bukkit {
|
|
return server.getBytebufManager();
|
|
}
|
|
// Leaves end - Bytebuf API
|
|
+
|
|
+ // Leaves start - Config API
|
|
+ public static org.leavesmc.leaves.config.LeavesConfigProvider getLeavesConfig() {
|
|
+ return server.getLeavesConfig();
|
|
+ }
|
|
+ // Leaves end - Config API
|
|
}
|
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
|
index a1742e64232c949dc88deb5d6083c4bf62e6aae9..75a1917d998bf8aa0b86a67ca0f0836804fad012 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -2733,4 +2733,8 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
|
// Leaves start - Bytebuf API
|
|
org.leavesmc.leaves.bytebuf.BytebufManager getBytebufManager();
|
|
// Leaves end - Bytebuf API
|
|
+
|
|
+ // Leaves start - Config API
|
|
+ org.leavesmc.leaves.config.LeavesConfigProvider getLeavesConfig();
|
|
+ // Leaves End - Config API
|
|
}
|