# Package net.axay.kspigot.extensions.bukkit

## Functions

actionBar
Link copied to clipboard
fun Player.actionBar(text: String)
Content copied to clipboard
Sends the given text as an action bar message.
appear
Link copied to clipboard
fun Player.appear()
Content copied to clipboard
Shows the player for all onlinePlayers.
closeForViewers
Link copied to clipboard
fun Inventory.closeForViewers()
Content copied to clipboard
Closes the inventory for all viewers.
disappear
Link copied to clipboard
fun Player.disappear()
Content copied to clipboard
Hides the player for all onlinePlayers.
error
Link copied to clipboard
fun CommandSender.error(text: String, plugin: Plugin? = KSpigotMainInstance)
Content copied to clipboard
feed
Link copied to clipboard
fun Player.feed()
Content copied to clipboard
Sets the players' foodLevel to the max possible value.
feedSaturate
Link copied to clipboard
fun Player.feedSaturate()
Content copied to clipboard
Feeds and saturates the player.
getHandItem
Link copied to clipboard
fun Player.getHandItem(hand: EquipmentSlot?): ItemStack?
Content copied to clipboard
Returns the itemInHand of the given EquipmentSlot if it is an hand slot.
give
Link copied to clipboard
fun Player.give(vararg itemStacks: ItemStack): HashMap<Int, ItemStack>
Content copied to clipboard
Adds the given ItemStacks to the player's inventory.
heal
Link copied to clipboard
fun LivingEntity.heal()
Content copied to clipboard
Sets the entities' health to the max possible value.
hideOnlinePlayers
Link copied to clipboard
fun Player.hideOnlinePlayers()
Content copied to clipboard
Hides all online players from this player.
info
Link copied to clipboard
fun CommandSender.info(text: String, plugin: Plugin? = KSpigotMainInstance)
Content copied to clipboard
kick
Link copied to clipboard
fun Player.kick(reason: String? = "You got kicked!")
Content copied to clipboard
Kicks the player from the server.
kill
Link copied to clipboard
fun Damageable.kill()
Content copied to clipboard
Kills the damageable.
print
Link copied to clipboard
fun CommandSender.print(text: String, plugin: Plugin? = KSpigotMainInstance)
Content copied to clipboard
printColoredPrefix
Link copied to clipboard
fun CommandSender.printColoredPrefix(text: String, textColor: ChatColor, prefix: String, prefixColor: ChatColor)
Content copied to clipboard
Sends the given message and adds the given prefix with the given color to it.
register
Link copied to clipboard
fun CommandExecutor.register(commandName: String): Boolean
Content copied to clipboard
Registers this CommandExecutor for the given command.
saturate
Link copied to clipboard
fun Player.saturate()
Content copied to clipboard
Sets the players' saturation to the current max possible value.
sendToServer
Link copied to clipboard
fun Player.sendToServer(servername: String)
Content copied to clipboard
Sends the player to the given server in the BungeeCord network.
showOnlinePlayers
Link copied to clipboard
fun Player.showOnlinePlayers()
Content copied to clipboard
Shows all online players to this player.
spawnCleanEntity
Link copied to clipboard
fun Location.spawnCleanEntity(entityType: EntityType): Entity?
Content copied to clipboard
Spawns an entity without any variations in color, type etc...
success
Link copied to clipboard
fun CommandSender.success(text: String, plugin: Plugin? = KSpigotMainInstance)
Content copied to clipboard
title
Link copied to clipboard
fun Player.title(mainText: String? = null, subText: String? = null, fadeIn: Int = 10, stay: Int = 70, fadeOut: Int = 20)
Content copied to clipboard
warn
Link copied to clipboard
fun CommandSender.warn(text: String, plugin: Plugin? = KSpigotMainInstance)
Content copied to clipboard

## Properties

allBlocks
Link copied to clipboard
val Chunk.allBlocks: LinkedHashSet<Block>
Content copied to clipboard
bukkitColor
Link copied to clipboard
val ChatColor.bukkitColor: Color
Content copied to clipboard
Returns the corresponding Bukkit Color object.
bukkitColor
Link copied to clipboard
val Color.bukkitColor: Color
Content copied to clipboard
Returns the corresponding Bukkit Color object.
bukkitColor
Link copied to clipboard
val ChatColor.bukkitColor: Color
Content copied to clipboard
Returns the corresponding Bukkit Color object.
bungeeColor
Link copied to clipboard
val Color.bungeeColor: ChatColor
Content copied to clipboard
Returns the corresponding Bungee Color object.
bungeeColor
Link copied to clipboard
val Color.bungeeColor: ChatColor
Content copied to clipboard
Returns the corresponding Bungee Color object.
bungeeColor
Link copied to clipboard
val ChatColor.bungeeColor: ChatColor
Content copied to clipboard
Returns the corresponding Bungee Color object.
content
Link copied to clipboard
val BookMeta.content: String
Content copied to clipboard
isDamageable
Link copied to clipboard
val GameMode.isDamageable: Boolean
Content copied to clipboard
isFeetInWater
Link copied to clipboard
val Entity.isFeetInWater: Boolean
Content copied to clipboard
Checks if the entities' feet are in water.
isGroundSolid
Link copied to clipboard
val Entity.isGroundSolid: Boolean
Content copied to clipboard
Checks if the entity stands on solid ground.
isHeadInWater
Link copied to clipboard
val LivingEntity.isHeadInWater: Boolean
Content copied to clipboard
Checks if the entities' head is in water.
isInWater
Link copied to clipboard
val LivingEntity.isInWater: Boolean
Content copied to clipboard
Checks if the entity is completely in water.
isSimple
Link copied to clipboard
val InventoryAction.isSimple: Boolean
Content copied to clipboard
javaAwtColor
Link copied to clipboard
val ChatColor.javaAwtColor: Color
Content copied to clipboard
Returns the corresponding Java Color object.
javaAwtColor
Link copied to clipboard
val Color.javaAwtColor: Color
Content copied to clipboard
Returns the corresponding Java Color object.
javaAwtColor
Link copied to clipboard
val ChatColor.javaAwtColor: Color
Content copied to clipboard
Returns the corresponding Java Color object.
worldOrException
Link copied to clipboard
val Location.worldOrException: World
Content copied to clipboard
Assumes that this Location has world data.