9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 02:49:19 +00:00
Files
Leaf/leaf-api/paper-patches/features/0002-Gale-configuration.patch
2025-09-27 12:42:53 -04: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 964b57bb240151ddf4f11c203b67e8be6469e473..50fdb3f378be4301a321e9735870dc5d579d763c 100644
--- a/src/main/java/org/bukkit/Server.java
+++ b/src/main/java/org/bukkit/Server.java
@@ -2422,6 +2422,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
/**