Yatopia/patches/server/0022-EMC-ServerReloadEvent.patch

25 lines
1.1 KiB
Diff
Raw Normal View History

2020-03-21 17:29:35 +01:00
From 0d60368fc67b5a475b1285d0484c517b3565332f Mon Sep 17 00:00:00 2001
2020-02-26 20:12:29 +01:00
From: Aikar <aikar@aikar.co>
Date: Thu, 25 Jun 2015 21:00:09 -0400
Subject: [PATCH] EMC ServerReloadEvent
---
src/main/java/org/bukkit/craftbukkit/CraftServer.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2020-03-21 17:29:35 +01:00
index 4b27af23..d3a0a917 100644
2020-02-26 20:12:29 +01:00
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2020-03-21 17:29:35 +01:00
@@ -771,6 +771,7 @@ public final class CraftServer implements Server {
2020-02-26 20:12:29 +01:00
@Override
public void reload() {
org.spigotmc.WatchdogThread.hasStarted = false; // Paper - Disable watchdog early timeout on reload
+ new com.empireminecraft.customevents.ServerReloadEvent().callEvent(); // EMC
reloadCount++;
configuration = YamlConfiguration.loadConfiguration(getConfigFile());
commandsConfiguration = YamlConfiguration.loadConfiguration(getCommandsConfigFile());
--
2.25.1.windows.1