a lot of progress inside the ui

This commit is contained in:
alexcrea 2026-08-17 01:38:14 +02:00
parent 0ffe7c70f9
commit e1d8dd07ad
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
28 changed files with 386 additions and 152 deletions

View file

@ -112,6 +112,26 @@ object PlatformUtil {
return true
}
return false
} /**
* Try to send paper component to the player
*
* @param component The used component
* @return true if sent, else otherwise
*/
/**
* Try to set component lore of an item
*
* @param components The used component lore
* @return true if sent, else otherwise
*/
fun ItemMeta.setPaperLore(components: List<Component>): Boolean {
if(isPaper) {
this.lore(components)
return true
}
return false
}