--- a/net/minecraft/server/commands/CommandReload.java +++ b/net/minecraft/server/commands/CommandReload.java @@ -44,6 +44,16 @@ return collection1; } + // CraftBukkit start + public static void reload(MinecraftServer minecraftserver) { + ResourcePackRepository resourcepackrepository = minecraftserver.getResourcePackRepository(); + SaveData savedata = minecraftserver.getSaveData(); + Collection collection = resourcepackrepository.d(); + Collection collection1 = a(resourcepackrepository, savedata, collection); + minecraftserver.a(collection1); + } + // CraftBukkit end + public static void a(CommandDispatcher commanddispatcher) { commanddispatcher.register((LiteralArgumentBuilder) ((LiteralArgumentBuilder) net.minecraft.commands.CommandDispatcher.a("reload").requires((commandlistenerwrapper) -> { return commandlistenerwrapper.hasPermission(2);