mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
--------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Co-authored-by: violetc <58360096+s-yh-china@users.noreply.github.com> Co-authored-by: Helvetica Volubi <88063803+Suisuroru@users.noreply.github.com>
40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MC_XiaoHei <xor7xiaohei@gmail.com>
|
|
Date: Sat, 2 Aug 2025 09:46:11 +0800
|
|
Subject: [PATCH] Leaves Plugin
|
|
|
|
This patch is licensed under the MIT license.
|
|
|
|
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
|
|
index 5cc913f9e903ea5ef51c2e2b8cc18fdad8838c1e..554b8977c9b358f177e29907bcebaed8ab2100fc 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -3004,6 +3004,12 @@ public final class Bukkit {
|
|
server.restart();
|
|
}
|
|
|
|
+ // Leaves start - Feature API
|
|
+ public static org.leavesmc.leaves.plugin.FeatureManager getFeatureManager() {
|
|
+ return server.getFeatureManager();
|
|
+ }
|
|
+ // Leaves end - Feature API
|
|
+
|
|
// Leaves start - Bot API
|
|
/**
|
|
* Returns a bot manager.
|
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
|
index 95621c3b4279f4d1b7786772cc035f3747e9d84f..cdc5295db1dbbd4b20a0acc99fdcc9013d6a5489 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -2761,6 +2761,10 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
|
|
void allowPausing(@NotNull org.bukkit.plugin.Plugin plugin, boolean value);
|
|
// Paper end - API to check if the server is sleeping
|
|
|
|
+ // Leaves start - Feature API
|
|
+ org.leavesmc.leaves.plugin.FeatureManager getFeatureManager();
|
|
+ // Leaves End - Feature API
|
|
+
|
|
// Leaves start - Bot API
|
|
/**
|
|
* Returns a bot manager.
|