File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/me/despical/commandframework Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 19
19
package me .despical .commandframework ;
20
20
21
21
import me .despical .commandframework .utils .Utils ;
22
+ import net .kyori .adventure .text .Component ;
22
23
import org .bukkit .Bukkit ;
23
24
import org .bukkit .command .Command ;
24
25
import org .bukkit .command .CommandSender ;
@@ -246,6 +247,15 @@ public boolean sendMessage(Message message) {
246
247
return message .sendMessage (command , this );
247
248
}
248
249
250
+ /**
251
+ * Sends the specified {@link Component} to command sender associated with this object.
252
+ *
253
+ * @param component the {@link Component} object to be sent.
254
+ */
255
+ public void sendMessage (Component component ) {
256
+ commandSender .sendMessage (component );
257
+ }
258
+
249
259
/**
250
260
* Returns {@code true} if, and only if, command sender is console.
251
261
*
You can’t perform that action at this time.
0 commit comments