9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-21 07:49:29 +00:00
Files
SakuraMC/sakura-server/minecraft-patches/sources/net/minecraft/server/dedicated/DedicatedServer.java.patch
2025-03-30 13:40:09 +01:00

15 lines
887 B
Diff

--- a/net/minecraft/server/dedicated/DedicatedServer.java
+++ b/net/minecraft/server/dedicated/DedicatedServer.java
@@ -184,6 +_,11 @@
this.server.spark.registerCommandBeforePlugins(this.server); // Paper - spark
com.destroystokyo.paper.Metrics.PaperMetrics.startMetrics(); // Paper - start metrics
com.destroystokyo.paper.VersionHistoryManager.INSTANCE.getClass(); // Paper - load version history now
+ // Sakura start - sakura configuration files
+ sakuraConfigurations.initializeGlobalConfiguration(this.registryAccess());
+ sakuraConfigurations.initializeWorldDefaultsConfiguration(this.registryAccess());
+ me.samsuik.sakura.command.SakuraCommands.registerCommands(this);
+ // Sakura end - sakura configuration files
this.setPvpAllowed(properties.pvp);
this.setFlightAllowed(properties.allowFlight);