File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
src/main/java/systems/kscott/randomspawnplus/util Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 110110 <scope >provided</scope >
111111 </dependency >
112112 <dependency >
113- <groupId >net.essentialsx</groupId >
114- <artifactId >EssentialsX</artifactId >
115- <version >2.19.7</version >
116- <scope >provided</scope >
113+ <groupId >net.kyori</groupId >
114+ <artifactId >adventure-api</artifactId >
115+ <version >4.13.1</version >
117116 </dependency >
118117 <dependency >
119118 <groupId >co.aikar</groupId >
126125 <version >1.0.8</version >
127126 <scope >compile</scope >
128127 </dependency >
128+ <dependency >
129+ <groupId >net.essentialsx</groupId >
130+ <artifactId >EssentialsX</artifactId >
131+ <version >2.19.7</version >
132+ <scope >provided</scope >
133+ </dependency >
129134 <dependency >
130135 <groupId >net.luckperms</groupId >
131136 <artifactId >api</artifactId >
Original file line number Diff line number Diff line change @@ -42,26 +42,26 @@ public static List<String> color(List<String> lore) {
4242
4343 public static void msg (Player player , String ... messages ) {
4444 Arrays .stream (messages ).forEach ((s ) -> {
45- player .sendMessage (color (s ));
45+ player .sendMessage (net . kyori . adventure . text . Component . text ( color (s ) ));
4646 });
4747 }
4848
4949 public static void msg (CommandSender sender , String ... messages ) {
5050 Arrays .stream (messages ).forEach ((s ) -> {
51- sender .sendMessage (color (s ));
51+ sender .sendMessage (net . kyori . adventure . text . Component . text ( color (s ) ));
5252 });
5353 }
5454
5555 public static void msgAll (String ... messages ) {
5656 Bukkit .getOnlinePlayers ().stream ().forEach ((o ) -> {
5757 Arrays .stream (messages ).forEach ((s ) -> {
58- o .sendMessage (color (s ));
58+ o .sendMessage (net . kyori . adventure . text . Component . text ( color (s ) ));
5959 });
6060 });
6161 }
6262
6363 public static void log (String message ) {
64- Bukkit .getConsoleSender ().sendMessage (color (message ));
64+ Bukkit .getConsoleSender ().sendMessage (net . kyori . adventure . text . Component . text ( color (message ) ));
6565 }
6666
6767 public static String uppercaseFirst (String str ) {
You can’t perform that action at this time.
0 commit comments