From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:07:27 -0500 Subject: [PATCH] Leaf Commands Currently the config reload is just a simple poc, if necessary, I will add @DoNotLoad feature in the future, like Luminol TODOs: Leaf status command Leaf config command Leaf version command enhanced (ability to show the list of new commits based on current version) (optional) Leaf config Leaf config only get config value (TODO: check whether work, and whether need to set config value back to keep the key in the config file) Leaf config convert from toml to yaml Leaf config v3 move to new key ... diff --git a/net/minecraft/server/dedicated/DedicatedServer.java b/net/minecraft/server/dedicated/DedicatedServer.java index 8077719592eb826ac656ff73214b165f60deb729..b615dd89bbbb4c1a027c63ca714ebf8cb80e0c4d 100644 --- a/net/minecraft/server/dedicated/DedicatedServer.java +++ b/net/minecraft/server/dedicated/DedicatedServer.java @@ -197,6 +197,7 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface } org.purpurmc.purpur.PurpurConfig.registerCommands(); // Purpur end - Purpur config files + org.dreeam.leaf.command.LeafCommands.registerCommands(this); // Leaf - Leaf commands com.destroystokyo.paper.VersionHistoryManager.INSTANCE.getClass(); // Paper - load version history now this.setPvpAllowed(properties.pvp);