Added sendMessage(BaseComponent) extension to Player

This commit is contained in:
bluefireoly
2020-06-27 00:10:07 +02:00
parent f84d41c417
commit caeac3f733

View File

@@ -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 {