From 00bee3862426653801bdb111fddae3d6bd8daf2a Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Fri, 4 Mar 2022 13:53:36 -0700
Subject: [PATCH] replace bungeecord-chat dependency with deprecated version
 (#7539)

---
 patches/api/Adventure.patch | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/patches/api/Adventure.patch b/patches/api/Adventure.patch
index b276abb37c..24108e5f47 100644
--- a/patches/api/Adventure.patch
+++ b/patches/api/Adventure.patch
@@ -30,7 +30,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
  dependencies {
      // api dependencies are listed transitively to API consumers
      api("commons-lang:commons-lang:2.6")
-@@ -0,0 +0,0 @@ dependencies {
+     api("com.google.guava:guava:31.0.1-jre")
+     api("com.google.code.gson:gson:2.8.9")
+-    api("net.md-5:bungeecord-chat:1.16-R0.4")
++    api("net.md-5:bungeecord-chat:1.16-R0.4-deprecated+build.6") // Paper
+     api("org.yaml:snakeyaml:1.30")
+     // Paper start
+     api("com.googlecode.json-simple:json-simple:1.1.1") {
          isTransitive = false // includes junit
      }
      api("it.unimi.dsi:fastutil:8.5.6")
@@ -44,10 +50,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
  
      compileOnly("org.apache.maven:maven-resolver-provider:3.8.4")
 @@ -0,0 +0,0 @@ tasks.withType<Javadoc> {
+         "https://guava.dev/releases/31.0.1-jre/api/docs/",
          "https://javadoc.io/doc/org.yaml/snakeyaml/1.30/",
          "https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/", // Paper - we don't want Java 5 annotations
-         "https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/",
+-        "https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/",
 +        // Paper start
++        //"https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/", // don't link to bungee chat
 +        "https://jd.adventure.kyori.net/api/$adventureVersion/",
 +        "https://jd.adventure.kyori.net/text-minimessage/$adventureVersion/",
 +        "https://jd.adventure.kyori.net/text-serializer-gson/$adventureVersion/",