# net.axay.kspigot.extensions.bukkit

# Package net.axay.kspigot.extensions.bukkit

## Functions

appear
Link copied to clipboard

Shows the player for all onlinePlayers.

fun Player.appear()
Content copied to clipboard
disappear
Link copied to clipboard

Hides the player for all onlinePlayers.

fun Player.disappear()
Content copied to clipboard
error
Link copied to clipboard
fun CommandSender.error(text: String, plugin: Plugin?)
Content copied to clipboard
feed
Link copied to clipboard

Sets the players' foodLevel to the max possible value.

fun Player.feed()
Content copied to clipboard
feedSaturate
Link copied to clipboard

Feeds and saturates the player.

fun Player.feedSaturate()
Content copied to clipboard
getHandItem
Link copied to clipboard

Returns the itemInHand of the given EquipmentSlot if it is an hand slot.

fun Player.getHandItem(hand: EquipmentSlot?): ItemStack?
Content copied to clipboard
heal
Link copied to clipboard

Sets the entities' health to the max possible value.

fun LivingEntity.heal()
Content copied to clipboard
info
Link copied to clipboard
fun CommandSender.info(text: String, plugin: Plugin?)
Content copied to clipboard
kick
Link copied to clipboard

Kicks the player from the server.

fun Player.kick(reason: String?)
Content copied to clipboard
kill
Link copied to clipboard

Kills the damageable.

fun Damageable.kill()
Content copied to clipboard
print
Link copied to clipboard
fun CommandSender.print(text: String, plugin: Plugin?)
Content copied to clipboard
printColoredPrefix
Link copied to clipboard

Sends the given message and adds the given prefix with the given color to it.

fun CommandSender.printColoredPrefix(text: String, textColor: ChatColor, prefix: String, prefixColor: ChatColor)
Content copied to clipboard
register
Link copied to clipboard

Registers this CommandExecutor for the given command.

fun CommandExecutor.register(commandName: String): Boolean
Content copied to clipboard
saturate
Link copied to clipboard

Sets the players' saturation to the current max possible value.

fun Player.saturate()
Content copied to clipboard
spawnCleanEntity
Link copied to clipboard

Spawns an entity without any variations in color, type etc...

fun Location.spawnCleanEntity(entityType: EntityType): Entity?
Content copied to clipboard
success
Link copied to clipboard
fun CommandSender.success(text: String, plugin: Plugin?)
Content copied to clipboard
title
Link copied to clipboard
fun Player.title(mainText: String?, subText: String?, fadeIn: Int, stay: Int, fadeOut: Int)
Content copied to clipboard
warn
Link copied to clipboard
fun CommandSender.warn(text: String, plugin: Plugin?)
Content copied to clipboard

## Properties

isDamageable
Link copied to clipboard

val GameMode.isDamageable: Boolean
Content copied to clipboard
isFeetInWater
Link copied to clipboard

Checks if the entities' feet are in water.

val Entity.isFeetInWater: Boolean
Content copied to clipboard
isGroundSolid
Link copied to clipboard

Checks if the entity stands on solid ground.

val Entity.isGroundSolid: Boolean
Content copied to clipboard
isHeadInWater
Link copied to clipboard

Checks if the entities' head is in water.

val LivingEntity.isHeadInWater: Boolean
Content copied to clipboard
isInWater
Link copied to clipboard

Checks if the entity is completely in water.

val LivingEntity.isInWater: Boolean
Content copied to clipboard
worldOrException
Link copied to clipboard

Assumes that this Location has world data. If not, an exception will be thrown.

val Location.worldOrException: World
Content copied to clipboard