mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
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 6c7a84baee27bd1e1ab95fe3a84057b8109c78d1..195a63c86c565ea0a1672138b9d217abaa0258ad 100644
|
|
--- a/src/main/java/org/bukkit/Bukkit.java
|
|
+++ b/src/main/java/org/bukkit/Bukkit.java
|
|
@@ -3017,6 +3017,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 8aa35daa8c80d90c4e863902a4db85175885cfe8..6e0d00d3d7220cacac781b010dac4212c64d5b08 100644
|
|
--- a/src/main/java/org/bukkit/Server.java
|
|
+++ b/src/main/java/org/bukkit/Server.java
|
|
@@ -2724,6 +2724,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.
|