Package net.axay.kspigot.extensions.bukkit

Functions

appear
Link copied to clipboard
fun Player.appear()
Shows the player for all onlinePlayers.
closeForViewers
Link copied to clipboard
fun Inventory.closeForViewers()
disappear
Link copied to clipboard
fun Player.disappear()
Hides the player for all onlinePlayers.
error
Link copied to clipboard
fun CommandSender.error(text: String, plugin: Plugin? = KSpigotMainInstance)
feed
Link copied to clipboard
fun Player.feed()
Sets the players' foodLevel to the max possible value.
feedSaturate
Link copied to clipboard
fun Player.feedSaturate()
Feeds and saturates the player.
getHandItem
Link copied to clipboard
fun Player.getHandItem(hand: EquipmentSlot?): ItemStack?
Returns the itemInHand of the given EquipmentSlot if it is an hand slot.
heal
Link copied to clipboard
fun LivingEntity.heal()
Sets the entities' health to the max possible value.
info
Link copied to clipboard
fun CommandSender.info(text: String, plugin: Plugin? = KSpigotMainInstance)
kick
Link copied to clipboard
fun Player.kick(reason: String? = "You got kicked!")
Kicks the player from the server.
kill
Link copied to clipboard
fun Damageable.kill()
Kills the damageable.
print
Link copied to clipboard
fun CommandSender.print(text: String, plugin: Plugin? = KSpigotMainInstance)
printColoredPrefix
Link copied to clipboard
fun CommandSender.printColoredPrefix(text: String, textColor: ChatColor, prefix: String, prefixColor: ChatColor)
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
Registers this CommandExecutor for the given command.
saturate
Link copied to clipboard
fun Player.saturate()
Sets the players' saturation to the current max possible value.
spawnCleanEntity
Link copied to clipboard
fun Location.spawnCleanEntity(entityType: EntityType): Entity?
Spawns an entity without any variations in color, type etc...
success
Link copied to clipboard
fun CommandSender.success(text: String, plugin: Plugin? = KSpigotMainInstance)
title
Link copied to clipboard
fun Player.title(mainText: String? = null, subText: String? = null, fadeIn: Int = 10, stay: Int = 70, fadeOut: Int = 20)
warn
Link copied to clipboard
fun CommandSender.warn(text: String, plugin: Plugin? = KSpigotMainInstance)

Properties

allBlocks
Link copied to clipboard
val Chunk.allBlocks: LinkedHashSet<Block>
content
Link copied to clipboard
val BookMeta.content: String
isDamageable
Link copied to clipboard
val GameMode.isDamageable: Boolean
isFeetInWater
Link copied to clipboard
val Entity.isFeetInWater: Boolean
Checks if the entities' feet are in water.
isGroundSolid
Link copied to clipboard
val Entity.isGroundSolid: Boolean
Checks if the entity stands on solid ground.
isHeadInWater
Link copied to clipboard
val LivingEntity.isHeadInWater: Boolean
Checks if the entities' head is in water.
isInWater
Link copied to clipboard
val LivingEntity.isInWater: Boolean
Checks if the entity is completely in water.
worldOrException
Link copied to clipboard
val Location.worldOrException: World
Assumes that this Location has world data.