Releases: jakobkmar/KSpigot
Releases · jakobkmar/KSpigot
v1.16.5_R23
- GUICompounds now have a
setContent
andremoveContent
function (previously they only had aaddContent
function)
v1.16.5_R22
- updated for Spigot 1.16.5
v1.16.4_R21
- the
task
function now returns the instance of theKSpigotRunnable
- updated APIs
v1.16.4_R20
- fixed a bug regarding
LocationArea
v1.16.4_R19
- IPAddressData values now do not contain
"
at the beginning and the end anymore - Color conversion between bungee colors, bukkit colors and java awt colors
- example:
KColors.AQUA.bukkitColor.javaAwtColor.bungeeColor.javaAwtColor
- (org.bukkit.ChatColor) can only be converted one way, because it is limited in its color variations
- example:
- the
fireworkItemStack
function allows you to easily create firework items with custom firework meta- use
addEffect { }
inside of theFireworkMeta
builder
- use
- the
editMeta
function can be called on anyFirework
entity, to change the firework effects (this is possible until it explodes) - added
Player.give(itemStacks)
- itemStacks is a vararg
- the
legacyText
function for chat component building now has a newbuilder
parameter
v1.16.4_R18
- kSpigotJsonConfig now has a
saveAfterLoad
parameter- If true, the loaded config will be saved immediately. This is useful, if the config structure was changed and new default parameters were applied
org.bukkit.event.block.Action
now has the extension valuesisLeftClick
andisRightClick
org.bukkit.event.inventory.InventoryAction
now has the extension valueisSimple
- this indicates if the action was a simple inventory click (a mouse click, where items were picked up or placed)
Player.ipAddressOrNull
returns the players ipAddress as a string- the value
onlineSenders
returns a collection of all online players plus the console command sender - added
Player.actionBar(stringWithColorCodes)
method - use
Player.sendToServer(servername)
to send a player to another server in the BungeeCord network - added
sendPluginMessage
methods- these methods offer response handling
- added PluginMessage presets, such as:
PluginMessageConnect
PluginMessagePlayerCount
PluginMessagePlayerList
PluginMessageGetServers
- and more
v1.16.3_R17
- GUIs are now protected from item dragging
- renamed
createCompound
for reactangle compounds tocreateRectCompound
- the new value
allBlocks
for Chunks returns all blocks in this chunk - the new simpleCompounds cover the most common compound use cases (functions
createSimpleCompound
andcreateSimpleRectCompound
)- the element data type of these compounds is
GUICompoundElement
- the element data type of these compounds is
v1.16.3_R16
- added
pluginKey(key)
as a new shortcut for NamespacedKey creation - PersistentDataHolders and ItemStacks now offer markings:
mark(key)
marks the object with the given key (conflicts with other plugins are not possible)unmark(key)
removes the key from the objects' markingshasMark(key)
return true, if the key is among the objects' markings
v1.16.3_R15
- added KSerializers for
kotlinx.serialization
to support common bukkit and spigot classes - fully implemented core GUI API
- GUIs can now be shared (same view for all players) or individual
- new PlayerInput API provides simple input callbacks for chat, anvils and books
toLoreList()
function converts a long string into a lorelist- the value
lengthWithoutMinecraftColour
allows you to get the length of a string ignoring all minecraft colour codes - the value
content
returns the whole content of a book as a single string