Added sendMessage(BaseComponent) extension to Player
This commit is contained in:
@@ -4,6 +4,7 @@ package net.axay.kspigot.chat
|
||||
|
||||
import net.md_5.bungee.api.ChatColor
|
||||
import net.md_5.bungee.api.chat.*
|
||||
import org.bukkit.entity.Player
|
||||
|
||||
object KBungeeChat {
|
||||
|
||||
@@ -11,6 +12,10 @@ object KBungeeChat {
|
||||
return KBungeeComponentBuilder().apply(builder).create()
|
||||
}
|
||||
|
||||
fun Player.sendMessage(vararg components: BaseComponent) {
|
||||
this.spigot().sendMessage(*components)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class KBungeeComponentBuilder {
|
||||
|
Reference in New Issue
Block a user