9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00
Files
Leaf/leaf-api/paper-patches/features/0002-Gale-configuration.patch
2025-06-29 23:39:55 +08:00

41 lines
1.5 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Martijn Muijsers <martijnmuijsers@live.nl>
Date: Wed, 23 Nov 2022 21:03:04 +0100
Subject: [PATCH] Gale configuration
License: MIT (https://opensource.org/licenses/MIT)
Gale - https://galemc.org
This patch is based on the following patch:
"Timings v2"
By: Aikar <aikar@aikar.co>
As part of: Paper (https://github.com/PaperMC/Paper)
Licensed under: MIT (https://opensource.org/licenses/MIT)
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index ed899c4cb4b5261ceff56bbc9ca806e20904508e..618287712f3504a50dd8a5987629523fc9f17a88 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -2378,6 +2378,21 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
{
throw new UnsupportedOperationException("Not supported yet.");
}
+
+ // Gale start - Gale configuration - API
+ /**
+ * @deprecated Server config options may be renamed or removed without notice. Another API will be provided
+ * once the APIs of other configurations change.
+ *
+ * @return The server's gale config.
+ */
+ @Deprecated(since = "1.21.4", forRemoval = true)
+ @NotNull
+ public org.bukkit.configuration.file.YamlConfiguration getGaleConfig() {
+ throw new UnsupportedOperationException("Not supported yet.");
+ }
+ // Gale end - Gale configuration - API
+
// Paper end
/**