Files
KSpigot/docs/-k-spigot/net.axay.kspigot.extensions.bukkit/index.md
bluefireoly 69b2e6cd17 Updated docs
2020-10-16 02:13:42 +02:00

6.5 KiB

title
title
net.axay.kspigot.extensions.bukkit -

//KSpigot/net.axay.kspigot.extensions.bukkit

Package net.axay.kspigot.extensions.bukkit

Functions

Name Summary
appear [jvm]
Brief description


Shows the player for all onlinePlayers.


Content
fun Player.appear()


disappear [jvm]
Brief description


Hides the player for all onlinePlayers.


Content
fun Player.disappear()


error [jvm]
Content
fun CommandSender.error(text: String, plugin: Plugin?)


feed [jvm]
Brief description


Sets the players' foodLevel to the max possible value.


Content
fun Player.feed()


feedSaturate [jvm]
Brief description


Feeds and saturates the player.


Content
fun Player.feedSaturate()


getHandItem [jvm]
Brief description


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


Content
fun Player.getHandItem(hand: EquipmentSlot?): ItemStack?


heal [jvm]
Brief description


Sets the entities' health to the max possible value.


Content
fun LivingEntity.heal()


info [jvm]
Content
fun CommandSender.info(text: String, plugin: Plugin?)


kick [jvm]
Brief description


Kicks the player from the server.


Content
fun Player.kick(reason: String?)


kill [jvm]
Brief description


Kills the damageable.


Content
fun Damageable.kill()


print [jvm]
Content
fun CommandSender.print(text: String, plugin: Plugin?)


printColoredPrefix [jvm]
Brief description


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


Content
fun CommandSender.printColoredPrefix(text: String, textColor: ChatColor, prefix: String, prefixColor: ChatColor)


saturate [jvm]
Brief description


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


Content
fun Player.saturate()


spawnCleanEntity [jvm]
Brief description


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


Content
fun Location.spawnCleanEntity(entityType: EntityType): Entity?


success [jvm]
Content
fun CommandSender.success(text: String, plugin: Plugin?)


title [jvm]
Content
fun Player.title(mainText: String?, subText: String?, fadeIn: Int, stay: Int, fadeOut: Int)


warn [jvm]
Content
fun CommandSender.warn(text: String, plugin: Plugin?)


Properties

Name Summary
isDamageable [jvm]



val GameMode.isDamageable: Boolean
isFeetInWater [jvm]

Checks if the entities' feet are in water.

val Entity.isFeetInWater: Boolean
isGroundSolid [jvm]

Checks if the entity stands on solid ground.

val Entity.isGroundSolid: Boolean
isHeadInWater [jvm]

Checks if the entities' head is in water.

val LivingEntity.isHeadInWater: Boolean
isInWater [jvm]

Checks if the entity is completely in water.

val LivingEntity.isInWater: Boolean