From 51fa2b3e64f021c3c0535f9f931d3fae27ca7adc Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 27 Apr 2019 18:34:58 +0100 Subject: Use text components instead of legacy formatting codes throughout the project --- spark-bungeecord/build.gradle | 1 + .../me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'spark-bungeecord') diff --git a/spark-bungeecord/build.gradle b/spark-bungeecord/build.gradle index f94e651..55dcb4e 100644 --- a/spark-bungeecord/build.gradle +++ b/spark-bungeecord/build.gradle @@ -1,5 +1,6 @@ dependencies { compile project(':spark-common') + compile 'net.kyori:text-adapter-bungeecord:1.0.3' compileOnly 'net.md-5:bungeecord-api:1.12-SNAPSHOT' } diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java index 0bc118a..ba2ee99 100644 --- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java +++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java @@ -24,9 +24,10 @@ import me.lucko.spark.common.SparkPlatform; import me.lucko.spark.common.SparkPlugin; import me.lucko.spark.common.sampler.ThreadDumper; import me.lucko.spark.common.sampler.TickCounter; +import net.kyori.text.Component; +import net.kyori.text.adapter.bungeecord.TextAdapter; import net.md_5.bungee.api.ChatColor; import net.md_5.bungee.api.CommandSender; -import net.md_5.bungee.api.chat.ClickEvent; import net.md_5.bungee.api.chat.TextComponent; import net.md_5.bungee.api.plugin.Command; import net.md_5.bungee.api.plugin.Plugin; @@ -76,16 +77,8 @@ public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin