From ec589911f642398833b467cab0cbc032d7f7162a Mon Sep 17 00:00:00 2001 From: XAP3Y Date: Sat, 29 Jun 2024 00:15:07 +0200 Subject: [PATCH] 1.0.6 --- docs/scripts/pages.json | 2 +- .../-texter/-companion/format-one-line.html | 80 +++++++++++++++++++ .../-texter/-companion/format.html | 4 +- .../-texter/-companion/index.html | 21 ++++- .../-texter/console.html | 2 +- .../-texter/index.html | 6 +- docs/xalib/package-list | 3 +- pom.xml | 2 +- .../kotlin/eu/xap3y/xalib/managers/Texter.kt | 12 ++- src/main/kotlin/eu/xap3y/xalib/utils/Utils.kt | 1 - 10 files changed, 119 insertions(+), 14 deletions(-) create mode 100644 docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html diff --git a/docs/scripts/pages.json b/docs/scripts/pages.json index 79a4219..8699136 100644 --- a/docs/scripts/pages.json +++ b/docs/scripts/pages.json @@ -1 +1 @@ -[{"name":"class ConfigManager(plugin: JavaPlugin)","description":"eu.xap3y.xalib.managers.ConfigManager","location":"xalib/eu.xap3y.xalib.managers/-config-manager/index.html","searchKeys":["ConfigManager","class ConfigManager(plugin: JavaPlugin)","eu.xap3y.xalib.managers.ConfigManager"]},{"name":"class Texter(data: TexterObj)","description":"eu.xap3y.xalib.managers.Texter","location":"xalib/eu.xap3y.xalib.managers/-texter/index.html","searchKeys":["Texter","class Texter(data: TexterObj)","eu.xap3y.xalib.managers.Texter"]},{"name":"constructor(clickAction: ClickEvent? = null, hoverText: String? = null)","description":"eu.xap3y.xalib.objects.FormatterModifiers.FormatterModifiers","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/-formatter-modifiers.html","searchKeys":["FormatterModifiers","constructor(clickAction: ClickEvent? = null, hoverText: String? = null)","eu.xap3y.xalib.objects.FormatterModifiers.FormatterModifiers"]},{"name":"constructor(data: TexterObj)","description":"eu.xap3y.xalib.managers.Texter.Texter","location":"xalib/eu.xap3y.xalib.managers/-texter/-texter.html","searchKeys":["Texter","constructor(data: TexterObj)","eu.xap3y.xalib.managers.Texter.Texter"]},{"name":"constructor(percentage: Int, symbolFill: Char = '|', symbolEmpty: Char = '|', colorFill: String = \"§a\", colorEmpty: String = \"§7\")","description":"eu.xap3y.xalib.objects.ProgressbarModifier.ProgressbarModifier","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/-progressbar-modifier.html","searchKeys":["ProgressbarModifier","constructor(percentage: Int, symbolFill: Char = '|', symbolEmpty: Char = '|', colorFill: String = \"§a\", colorEmpty: String = \"§7\")","eu.xap3y.xalib.objects.ProgressbarModifier.ProgressbarModifier"]},{"name":"constructor(plugin: JavaPlugin)","description":"eu.xap3y.xalib.managers.ConfigManager.ConfigManager","location":"xalib/eu.xap3y.xalib.managers/-config-manager/-config-manager.html","searchKeys":["ConfigManager","constructor(plugin: JavaPlugin)","eu.xap3y.xalib.managers.ConfigManager.ConfigManager"]},{"name":"constructor(prefix: String = \"\", debug: Boolean = false, debugFile: File? = null)","description":"eu.xap3y.xalib.objects.TexterObj.TexterObj","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/-texter-obj.html","searchKeys":["TexterObj","constructor(prefix: String = \"\", debug: Boolean = false, debugFile: File? = null)","eu.xap3y.xalib.objects.TexterObj.TexterObj"]},{"name":"constructor(withPrefix: Boolean = true, colored: Boolean = true)","description":"eu.xap3y.xalib.objects.TextModifier.TextModifier","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/-text-modifier.html","searchKeys":["TextModifier","constructor(withPrefix: Boolean = true, colored: Boolean = true)","eu.xap3y.xalib.objects.TextModifier.TextModifier"]},{"name":"data class FormatterModifiers(val clickAction: ClickEvent? = null, val hoverText: String? = null)","description":"eu.xap3y.xalib.objects.FormatterModifiers","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/index.html","searchKeys":["FormatterModifiers","data class FormatterModifiers(val clickAction: ClickEvent? = null, val hoverText: String? = null)","eu.xap3y.xalib.objects.FormatterModifiers"]},{"name":"data class ProgressbarModifier(val percentage: Int, val symbolFill: Char = '|', val symbolEmpty: Char = '|', val colorFill: String = \"§a\", val colorEmpty: String = \"§7\")","description":"eu.xap3y.xalib.objects.ProgressbarModifier","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/index.html","searchKeys":["ProgressbarModifier","data class ProgressbarModifier(val percentage: Int, val symbolFill: Char = '|', val symbolEmpty: Char = '|', val colorFill: String = \"§a\", val colorEmpty: String = \"§7\")","eu.xap3y.xalib.objects.ProgressbarModifier"]},{"name":"data class TextModifier(val withPrefix: Boolean = true, val colored: Boolean = true)","description":"eu.xap3y.xalib.objects.TextModifier","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/index.html","searchKeys":["TextModifier","data class TextModifier(val withPrefix: Boolean = true, val colored: Boolean = true)","eu.xap3y.xalib.objects.TextModifier"]},{"name":"data class TexterObj(val prefix: String = \"\", val debug: Boolean = false, val debugFile: File? = null)","description":"eu.xap3y.xalib.objects.TexterObj","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/index.html","searchKeys":["TexterObj","data class TexterObj(val prefix: String = \"\", val debug: Boolean = false, val debugFile: File? = null)","eu.xap3y.xalib.objects.TexterObj"]},{"name":"fun addLore(item: ItemStack, lore: List): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.addLore","location":"xalib/eu.xap3y.xalib.utils/-modify-item/add-lore.html","searchKeys":["addLore","fun addLore(item: ItemStack, lore: List): ItemStack","eu.xap3y.xalib.utils.ModifyItem.addLore"]},{"name":"fun applyHead(p: LivingEntity, item: ItemStack)","description":"eu.xap3y.xalib.utils.ModifyItem.applyHead","location":"xalib/eu.xap3y.xalib.utils/-modify-item/apply-head.html","searchKeys":["applyHead","fun applyHead(p: LivingEntity, item: ItemStack)","eu.xap3y.xalib.utils.ModifyItem.applyHead"]},{"name":"fun centered(message: String): String","description":"eu.xap3y.xalib.managers.Texter.Companion.centered","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/centered.html","searchKeys":["centered","fun centered(message: String): String","eu.xap3y.xalib.managers.Texter.Companion.centered"]},{"name":"fun colored(text: String): String","description":"eu.xap3y.xalib.managers.Texter.Companion.colored","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/colored.html","searchKeys":["colored","fun colored(text: String): String","eu.xap3y.xalib.managers.Texter.Companion.colored"]},{"name":"fun console(text: String)","description":"eu.xap3y.xalib.managers.Texter.console","location":"xalib/eu.xap3y.xalib.managers/-texter/console.html","searchKeys":["console","fun console(text: String)","eu.xap3y.xalib.managers.Texter.console"]},{"name":"fun console(text: String, modifiers: TextModifier)","description":"eu.xap3y.xalib.managers.Texter.console","location":"xalib/eu.xap3y.xalib.managers/-texter/console.html","searchKeys":["console","fun console(text: String, modifiers: TextModifier)","eu.xap3y.xalib.managers.Texter.console"]},{"name":"fun debugLog(text: String, level: Level): Boolean","description":"eu.xap3y.xalib.managers.Texter.debugLog","location":"xalib/eu.xap3y.xalib.managers/-texter/debug-log.html","searchKeys":["debugLog","fun debugLog(text: String, level: Level): Boolean","eu.xap3y.xalib.managers.Texter.debugLog"]},{"name":"fun extractItemPersistent(item: ItemStack): String","description":"eu.xap3y.xalib.utils.ModifyItem.extractItemPersistent","location":"xalib/eu.xap3y.xalib.utils/-modify-item/extract-item-persistent.html","searchKeys":["extractItemPersistent","fun extractItemPersistent(item: ItemStack): String","eu.xap3y.xalib.utils.ModifyItem.extractItemPersistent"]},{"name":"fun format(map: LinkedHashMap): Component","description":"eu.xap3y.xalib.managers.Texter.Companion.format","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html","searchKeys":["format","fun format(map: LinkedHashMap): Component","eu.xap3y.xalib.managers.Texter.Companion.format"]},{"name":"fun format(text: String, modifier: FormatterModifiers): Component","description":"eu.xap3y.xalib.managers.Texter.Companion.format","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html","searchKeys":["format","fun format(text: String, modifier: FormatterModifiers): Component","eu.xap3y.xalib.managers.Texter.Companion.format"]},{"name":"fun genItem(item: ItemStack, name: String? = null, lore: List? = null): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.genItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/gen-item.html","searchKeys":["genItem","fun genItem(item: ItemStack, name: String? = null, lore: List? = null): ItemStack","eu.xap3y.xalib.utils.ModifyItem.genItem"]},{"name":"fun hasEnoughSpace(player: Player, neededSize: Int): Boolean","description":"eu.xap3y.xalib.utils.Utils.hasEnoughSpace","location":"xalib/eu.xap3y.xalib.utils/-utils/has-enough-space.html","searchKeys":["hasEnoughSpace","fun hasEnoughSpace(player: Player, neededSize: Int): Boolean","eu.xap3y.xalib.utils.Utils.hasEnoughSpace"]},{"name":"fun importItemPersistent(item: ItemStack, hex: String): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.importItemPersistent","location":"xalib/eu.xap3y.xalib.utils/-modify-item/import-item-persistent.html","searchKeys":["importItemPersistent","fun importItemPersistent(item: ItemStack, hex: String): ItemStack","eu.xap3y.xalib.utils.ModifyItem.importItemPersistent"]},{"name":"fun progressBar(modifiers: ProgressbarModifier): String","description":"eu.xap3y.xalib.managers.Texter.Companion.progressBar","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/progress-bar.html","searchKeys":["progressBar","fun progressBar(modifiers: ProgressbarModifier): String","eu.xap3y.xalib.managers.Texter.Companion.progressBar"]},{"name":"fun reloadConfig()","description":"eu.xap3y.xalib.managers.ConfigManager.reloadConfig","location":"xalib/eu.xap3y.xalib.managers/-config-manager/reload-config.html","searchKeys":["reloadConfig","fun reloadConfig()","eu.xap3y.xalib.managers.ConfigManager.reloadConfig"]},{"name":"fun renameItem(item: ItemStack, name: String): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.renameItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/rename-item.html","searchKeys":["renameItem","fun renameItem(item: ItemStack, name: String): ItemStack","eu.xap3y.xalib.utils.ModifyItem.renameItem"]},{"name":"fun response(p0: CommandSender, text: String)","description":"eu.xap3y.xalib.managers.Texter.response","location":"xalib/eu.xap3y.xalib.managers/-texter/response.html","searchKeys":["response","fun response(p0: CommandSender, text: String)","eu.xap3y.xalib.managers.Texter.response"]},{"name":"fun response(p0: CommandSender, text: String, modifiers: TextModifier)","description":"eu.xap3y.xalib.managers.Texter.response","location":"xalib/eu.xap3y.xalib.managers/-texter/response.html","searchKeys":["response","fun response(p0: CommandSender, text: String, modifiers: TextModifier)","eu.xap3y.xalib.managers.Texter.response"]},{"name":"fun setLore(item: ItemStack, lore: List): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.setLore","location":"xalib/eu.xap3y.xalib.utils/-modify-item/set-lore.html","searchKeys":["setLore","fun setLore(item: ItemStack, lore: List): ItemStack","eu.xap3y.xalib.utils.ModifyItem.setLore"]},{"name":"fun strikeLightning(loc: Location, plugin: JavaPlugin? = null)","description":"eu.xap3y.xalib.utils.Utils.strikeLightning","location":"xalib/eu.xap3y.xalib.utils/-utils/strike-lightning.html","searchKeys":["strikeLightning","fun strikeLightning(loc: Location, plugin: JavaPlugin? = null)","eu.xap3y.xalib.utils.Utils.strikeLightning"]},{"name":"fun strikeLightnings(loc: Location, plugin: JavaPlugin, times: Int = 1, delay: Long = 0): CompletableFuture","description":"eu.xap3y.xalib.utils.Utils.strikeLightnings","location":"xalib/eu.xap3y.xalib.utils/-utils/strike-lightnings.html","searchKeys":["strikeLightnings","fun strikeLightnings(loc: Location, plugin: JavaPlugin, times: Int = 1, delay: Long = 0): CompletableFuture","eu.xap3y.xalib.utils.Utils.strikeLightnings"]},{"name":"object Companion","description":"eu.xap3y.xalib.managers.Texter.Companion","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/index.html","searchKeys":["Companion","object Companion","eu.xap3y.xalib.managers.Texter.Companion"]},{"name":"object ModifyItem","description":"eu.xap3y.xalib.utils.ModifyItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/index.html","searchKeys":["ModifyItem","object ModifyItem","eu.xap3y.xalib.utils.ModifyItem"]},{"name":"object Utils","description":"eu.xap3y.xalib.utils.Utils","location":"xalib/eu.xap3y.xalib.utils/-utils/index.html","searchKeys":["Utils","object Utils","eu.xap3y.xalib.utils.Utils"]},{"name":"val clickAction: ClickEvent? = null","description":"eu.xap3y.xalib.objects.FormatterModifiers.clickAction","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/click-action.html","searchKeys":["clickAction","val clickAction: ClickEvent? = null","eu.xap3y.xalib.objects.FormatterModifiers.clickAction"]},{"name":"val colorEmpty: String","description":"eu.xap3y.xalib.objects.ProgressbarModifier.colorEmpty","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/color-empty.html","searchKeys":["colorEmpty","val colorEmpty: String","eu.xap3y.xalib.objects.ProgressbarModifier.colorEmpty"]},{"name":"val colorFill: String","description":"eu.xap3y.xalib.objects.ProgressbarModifier.colorFill","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/color-fill.html","searchKeys":["colorFill","val colorFill: String","eu.xap3y.xalib.objects.ProgressbarModifier.colorFill"]},{"name":"val colored: Boolean = true","description":"eu.xap3y.xalib.objects.TextModifier.colored","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/colored.html","searchKeys":["colored","val colored: Boolean = true","eu.xap3y.xalib.objects.TextModifier.colored"]},{"name":"val debug: Boolean = false","description":"eu.xap3y.xalib.objects.TexterObj.debug","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/debug.html","searchKeys":["debug","val debug: Boolean = false","eu.xap3y.xalib.objects.TexterObj.debug"]},{"name":"val debugFile: File? = null","description":"eu.xap3y.xalib.objects.TexterObj.debugFile","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/debug-file.html","searchKeys":["debugFile","val debugFile: File? = null","eu.xap3y.xalib.objects.TexterObj.debugFile"]},{"name":"val hoverText: String? = null","description":"eu.xap3y.xalib.objects.FormatterModifiers.hoverText","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/hover-text.html","searchKeys":["hoverText","val hoverText: String? = null","eu.xap3y.xalib.objects.FormatterModifiers.hoverText"]},{"name":"val percentage: Int","description":"eu.xap3y.xalib.objects.ProgressbarModifier.percentage","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/percentage.html","searchKeys":["percentage","val percentage: Int","eu.xap3y.xalib.objects.ProgressbarModifier.percentage"]},{"name":"val prefix: String","description":"eu.xap3y.xalib.objects.TexterObj.prefix","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/prefix.html","searchKeys":["prefix","val prefix: String","eu.xap3y.xalib.objects.TexterObj.prefix"]},{"name":"val symbolEmpty: Char = '|'","description":"eu.xap3y.xalib.objects.ProgressbarModifier.symbolEmpty","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/symbol-empty.html","searchKeys":["symbolEmpty","val symbolEmpty: Char = '|'","eu.xap3y.xalib.objects.ProgressbarModifier.symbolEmpty"]},{"name":"val symbolFill: Char = '|'","description":"eu.xap3y.xalib.objects.ProgressbarModifier.symbolFill","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/symbol-fill.html","searchKeys":["symbolFill","val symbolFill: Char = '|'","eu.xap3y.xalib.objects.ProgressbarModifier.symbolFill"]},{"name":"val withPrefix: Boolean = true","description":"eu.xap3y.xalib.objects.TextModifier.withPrefix","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/with-prefix.html","searchKeys":["withPrefix","val withPrefix: Boolean = true","eu.xap3y.xalib.objects.TextModifier.withPrefix"]}] +[{"name":"class ConfigManager(plugin: JavaPlugin)","description":"eu.xap3y.xalib.managers.ConfigManager","location":"xalib/eu.xap3y.xalib.managers/-config-manager/index.html","searchKeys":["ConfigManager","class ConfigManager(plugin: JavaPlugin)","eu.xap3y.xalib.managers.ConfigManager"]},{"name":"class Texter(data: TexterObj)","description":"eu.xap3y.xalib.managers.Texter","location":"xalib/eu.xap3y.xalib.managers/-texter/index.html","searchKeys":["Texter","class Texter(data: TexterObj)","eu.xap3y.xalib.managers.Texter"]},{"name":"constructor(clickAction: ClickEvent? = null, hoverText: String? = null)","description":"eu.xap3y.xalib.objects.FormatterModifiers.FormatterModifiers","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/-formatter-modifiers.html","searchKeys":["FormatterModifiers","constructor(clickAction: ClickEvent? = null, hoverText: String? = null)","eu.xap3y.xalib.objects.FormatterModifiers.FormatterModifiers"]},{"name":"constructor(data: TexterObj)","description":"eu.xap3y.xalib.managers.Texter.Texter","location":"xalib/eu.xap3y.xalib.managers/-texter/-texter.html","searchKeys":["Texter","constructor(data: TexterObj)","eu.xap3y.xalib.managers.Texter.Texter"]},{"name":"constructor(percentage: Int, symbolFill: Char = '|', symbolEmpty: Char = '|', colorFill: String = \"§a\", colorEmpty: String = \"§7\")","description":"eu.xap3y.xalib.objects.ProgressbarModifier.ProgressbarModifier","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/-progressbar-modifier.html","searchKeys":["ProgressbarModifier","constructor(percentage: Int, symbolFill: Char = '|', symbolEmpty: Char = '|', colorFill: String = \"§a\", colorEmpty: String = \"§7\")","eu.xap3y.xalib.objects.ProgressbarModifier.ProgressbarModifier"]},{"name":"constructor(plugin: JavaPlugin)","description":"eu.xap3y.xalib.managers.ConfigManager.ConfigManager","location":"xalib/eu.xap3y.xalib.managers/-config-manager/-config-manager.html","searchKeys":["ConfigManager","constructor(plugin: JavaPlugin)","eu.xap3y.xalib.managers.ConfigManager.ConfigManager"]},{"name":"constructor(prefix: String = \"\", debug: Boolean = false, debugFile: File? = null)","description":"eu.xap3y.xalib.objects.TexterObj.TexterObj","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/-texter-obj.html","searchKeys":["TexterObj","constructor(prefix: String = \"\", debug: Boolean = false, debugFile: File? = null)","eu.xap3y.xalib.objects.TexterObj.TexterObj"]},{"name":"constructor(withPrefix: Boolean = true, colored: Boolean = true)","description":"eu.xap3y.xalib.objects.TextModifier.TextModifier","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/-text-modifier.html","searchKeys":["TextModifier","constructor(withPrefix: Boolean = true, colored: Boolean = true)","eu.xap3y.xalib.objects.TextModifier.TextModifier"]},{"name":"data class FormatterModifiers(val clickAction: ClickEvent? = null, val hoverText: String? = null)","description":"eu.xap3y.xalib.objects.FormatterModifiers","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/index.html","searchKeys":["FormatterModifiers","data class FormatterModifiers(val clickAction: ClickEvent? = null, val hoverText: String? = null)","eu.xap3y.xalib.objects.FormatterModifiers"]},{"name":"data class ProgressbarModifier(val percentage: Int, val symbolFill: Char = '|', val symbolEmpty: Char = '|', val colorFill: String = \"§a\", val colorEmpty: String = \"§7\")","description":"eu.xap3y.xalib.objects.ProgressbarModifier","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/index.html","searchKeys":["ProgressbarModifier","data class ProgressbarModifier(val percentage: Int, val symbolFill: Char = '|', val symbolEmpty: Char = '|', val colorFill: String = \"§a\", val colorEmpty: String = \"§7\")","eu.xap3y.xalib.objects.ProgressbarModifier"]},{"name":"data class TextModifier(val withPrefix: Boolean = true, val colored: Boolean = true)","description":"eu.xap3y.xalib.objects.TextModifier","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/index.html","searchKeys":["TextModifier","data class TextModifier(val withPrefix: Boolean = true, val colored: Boolean = true)","eu.xap3y.xalib.objects.TextModifier"]},{"name":"data class TexterObj(val prefix: String = \"\", val debug: Boolean = false, val debugFile: File? = null)","description":"eu.xap3y.xalib.objects.TexterObj","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/index.html","searchKeys":["TexterObj","data class TexterObj(val prefix: String = \"\", val debug: Boolean = false, val debugFile: File? = null)","eu.xap3y.xalib.objects.TexterObj"]},{"name":"fun addLore(item: ItemStack, lore: List): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.addLore","location":"xalib/eu.xap3y.xalib.utils/-modify-item/add-lore.html","searchKeys":["addLore","fun addLore(item: ItemStack, lore: List): ItemStack","eu.xap3y.xalib.utils.ModifyItem.addLore"]},{"name":"fun applyHead(p: LivingEntity, item: ItemStack)","description":"eu.xap3y.xalib.utils.ModifyItem.applyHead","location":"xalib/eu.xap3y.xalib.utils/-modify-item/apply-head.html","searchKeys":["applyHead","fun applyHead(p: LivingEntity, item: ItemStack)","eu.xap3y.xalib.utils.ModifyItem.applyHead"]},{"name":"fun centered(message: String): String","description":"eu.xap3y.xalib.managers.Texter.Companion.centered","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/centered.html","searchKeys":["centered","fun centered(message: String): String","eu.xap3y.xalib.managers.Texter.Companion.centered"]},{"name":"fun colored(text: String): String","description":"eu.xap3y.xalib.managers.Texter.Companion.colored","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/colored.html","searchKeys":["colored","fun colored(text: String): String","eu.xap3y.xalib.managers.Texter.Companion.colored"]},{"name":"fun console(text: String)","description":"eu.xap3y.xalib.managers.Texter.console","location":"xalib/eu.xap3y.xalib.managers/-texter/console.html","searchKeys":["console","fun console(text: String)","eu.xap3y.xalib.managers.Texter.console"]},{"name":"fun console(text: String, modifiers: TextModifier)","description":"eu.xap3y.xalib.managers.Texter.console","location":"xalib/eu.xap3y.xalib.managers/-texter/console.html","searchKeys":["console","fun console(text: String, modifiers: TextModifier)","eu.xap3y.xalib.managers.Texter.console"]},{"name":"fun console(text: String, wPrefix: Boolean)","description":"eu.xap3y.xalib.managers.Texter.console","location":"xalib/eu.xap3y.xalib.managers/-texter/console.html","searchKeys":["console","fun console(text: String, wPrefix: Boolean)","eu.xap3y.xalib.managers.Texter.console"]},{"name":"fun debugLog(text: String, level: Level): Boolean","description":"eu.xap3y.xalib.managers.Texter.debugLog","location":"xalib/eu.xap3y.xalib.managers/-texter/debug-log.html","searchKeys":["debugLog","fun debugLog(text: String, level: Level): Boolean","eu.xap3y.xalib.managers.Texter.debugLog"]},{"name":"fun extractItemPersistent(item: ItemStack): String","description":"eu.xap3y.xalib.utils.ModifyItem.extractItemPersistent","location":"xalib/eu.xap3y.xalib.utils/-modify-item/extract-item-persistent.html","searchKeys":["extractItemPersistent","fun extractItemPersistent(item: ItemStack): String","eu.xap3y.xalib.utils.ModifyItem.extractItemPersistent"]},{"name":"fun format(text: String, modifier: FormatterModifiers): Component","description":"eu.xap3y.xalib.managers.Texter.Companion.format","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html","searchKeys":["format","fun format(text: String, modifier: FormatterModifiers): Component","eu.xap3y.xalib.managers.Texter.Companion.format"]},{"name":"fun formatOneLine(map: LinkedHashMap): Component","description":"eu.xap3y.xalib.managers.Texter.Companion.formatOneLine","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html","searchKeys":["formatOneLine","fun formatOneLine(map: LinkedHashMap): Component","eu.xap3y.xalib.managers.Texter.Companion.formatOneLine"]},{"name":"fun genItem(item: ItemStack, name: String? = null, lore: List? = null): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.genItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/gen-item.html","searchKeys":["genItem","fun genItem(item: ItemStack, name: String? = null, lore: List? = null): ItemStack","eu.xap3y.xalib.utils.ModifyItem.genItem"]},{"name":"fun hasEnoughSpace(player: Player, neededSize: Int): Boolean","description":"eu.xap3y.xalib.utils.Utils.hasEnoughSpace","location":"xalib/eu.xap3y.xalib.utils/-utils/has-enough-space.html","searchKeys":["hasEnoughSpace","fun hasEnoughSpace(player: Player, neededSize: Int): Boolean","eu.xap3y.xalib.utils.Utils.hasEnoughSpace"]},{"name":"fun importItemPersistent(item: ItemStack, hex: String): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.importItemPersistent","location":"xalib/eu.xap3y.xalib.utils/-modify-item/import-item-persistent.html","searchKeys":["importItemPersistent","fun importItemPersistent(item: ItemStack, hex: String): ItemStack","eu.xap3y.xalib.utils.ModifyItem.importItemPersistent"]},{"name":"fun progressBar(modifiers: ProgressbarModifier): String","description":"eu.xap3y.xalib.managers.Texter.Companion.progressBar","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/progress-bar.html","searchKeys":["progressBar","fun progressBar(modifiers: ProgressbarModifier): String","eu.xap3y.xalib.managers.Texter.Companion.progressBar"]},{"name":"fun reloadConfig()","description":"eu.xap3y.xalib.managers.ConfigManager.reloadConfig","location":"xalib/eu.xap3y.xalib.managers/-config-manager/reload-config.html","searchKeys":["reloadConfig","fun reloadConfig()","eu.xap3y.xalib.managers.ConfigManager.reloadConfig"]},{"name":"fun renameItem(item: ItemStack, name: String): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.renameItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/rename-item.html","searchKeys":["renameItem","fun renameItem(item: ItemStack, name: String): ItemStack","eu.xap3y.xalib.utils.ModifyItem.renameItem"]},{"name":"fun response(p0: CommandSender, text: String)","description":"eu.xap3y.xalib.managers.Texter.response","location":"xalib/eu.xap3y.xalib.managers/-texter/response.html","searchKeys":["response","fun response(p0: CommandSender, text: String)","eu.xap3y.xalib.managers.Texter.response"]},{"name":"fun response(p0: CommandSender, text: String, modifiers: TextModifier)","description":"eu.xap3y.xalib.managers.Texter.response","location":"xalib/eu.xap3y.xalib.managers/-texter/response.html","searchKeys":["response","fun response(p0: CommandSender, text: String, modifiers: TextModifier)","eu.xap3y.xalib.managers.Texter.response"]},{"name":"fun setLore(item: ItemStack, lore: List): ItemStack","description":"eu.xap3y.xalib.utils.ModifyItem.setLore","location":"xalib/eu.xap3y.xalib.utils/-modify-item/set-lore.html","searchKeys":["setLore","fun setLore(item: ItemStack, lore: List): ItemStack","eu.xap3y.xalib.utils.ModifyItem.setLore"]},{"name":"fun strikeLightning(loc: Location, plugin: JavaPlugin? = null)","description":"eu.xap3y.xalib.utils.Utils.strikeLightning","location":"xalib/eu.xap3y.xalib.utils/-utils/strike-lightning.html","searchKeys":["strikeLightning","fun strikeLightning(loc: Location, plugin: JavaPlugin? = null)","eu.xap3y.xalib.utils.Utils.strikeLightning"]},{"name":"fun strikeLightnings(loc: Location, plugin: JavaPlugin, times: Int = 1, delay: Long = 0): CompletableFuture","description":"eu.xap3y.xalib.utils.Utils.strikeLightnings","location":"xalib/eu.xap3y.xalib.utils/-utils/strike-lightnings.html","searchKeys":["strikeLightnings","fun strikeLightnings(loc: Location, plugin: JavaPlugin, times: Int = 1, delay: Long = 0): CompletableFuture","eu.xap3y.xalib.utils.Utils.strikeLightnings"]},{"name":"object Companion","description":"eu.xap3y.xalib.managers.Texter.Companion","location":"xalib/eu.xap3y.xalib.managers/-texter/-companion/index.html","searchKeys":["Companion","object Companion","eu.xap3y.xalib.managers.Texter.Companion"]},{"name":"object ModifyItem","description":"eu.xap3y.xalib.utils.ModifyItem","location":"xalib/eu.xap3y.xalib.utils/-modify-item/index.html","searchKeys":["ModifyItem","object ModifyItem","eu.xap3y.xalib.utils.ModifyItem"]},{"name":"object Utils","description":"eu.xap3y.xalib.utils.Utils","location":"xalib/eu.xap3y.xalib.utils/-utils/index.html","searchKeys":["Utils","object Utils","eu.xap3y.xalib.utils.Utils"]},{"name":"val clickAction: ClickEvent? = null","description":"eu.xap3y.xalib.objects.FormatterModifiers.clickAction","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/click-action.html","searchKeys":["clickAction","val clickAction: ClickEvent? = null","eu.xap3y.xalib.objects.FormatterModifiers.clickAction"]},{"name":"val colorEmpty: String","description":"eu.xap3y.xalib.objects.ProgressbarModifier.colorEmpty","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/color-empty.html","searchKeys":["colorEmpty","val colorEmpty: String","eu.xap3y.xalib.objects.ProgressbarModifier.colorEmpty"]},{"name":"val colorFill: String","description":"eu.xap3y.xalib.objects.ProgressbarModifier.colorFill","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/color-fill.html","searchKeys":["colorFill","val colorFill: String","eu.xap3y.xalib.objects.ProgressbarModifier.colorFill"]},{"name":"val colored: Boolean = true","description":"eu.xap3y.xalib.objects.TextModifier.colored","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/colored.html","searchKeys":["colored","val colored: Boolean = true","eu.xap3y.xalib.objects.TextModifier.colored"]},{"name":"val debug: Boolean = false","description":"eu.xap3y.xalib.objects.TexterObj.debug","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/debug.html","searchKeys":["debug","val debug: Boolean = false","eu.xap3y.xalib.objects.TexterObj.debug"]},{"name":"val debugFile: File? = null","description":"eu.xap3y.xalib.objects.TexterObj.debugFile","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/debug-file.html","searchKeys":["debugFile","val debugFile: File? = null","eu.xap3y.xalib.objects.TexterObj.debugFile"]},{"name":"val hoverText: String? = null","description":"eu.xap3y.xalib.objects.FormatterModifiers.hoverText","location":"xalib/eu.xap3y.xalib.objects/-formatter-modifiers/hover-text.html","searchKeys":["hoverText","val hoverText: String? = null","eu.xap3y.xalib.objects.FormatterModifiers.hoverText"]},{"name":"val percentage: Int","description":"eu.xap3y.xalib.objects.ProgressbarModifier.percentage","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/percentage.html","searchKeys":["percentage","val percentage: Int","eu.xap3y.xalib.objects.ProgressbarModifier.percentage"]},{"name":"val prefix: String","description":"eu.xap3y.xalib.objects.TexterObj.prefix","location":"xalib/eu.xap3y.xalib.objects/-texter-obj/prefix.html","searchKeys":["prefix","val prefix: String","eu.xap3y.xalib.objects.TexterObj.prefix"]},{"name":"val symbolEmpty: Char = '|'","description":"eu.xap3y.xalib.objects.ProgressbarModifier.symbolEmpty","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/symbol-empty.html","searchKeys":["symbolEmpty","val symbolEmpty: Char = '|'","eu.xap3y.xalib.objects.ProgressbarModifier.symbolEmpty"]},{"name":"val symbolFill: Char = '|'","description":"eu.xap3y.xalib.objects.ProgressbarModifier.symbolFill","location":"xalib/eu.xap3y.xalib.objects/-progressbar-modifier/symbol-fill.html","searchKeys":["symbolFill","val symbolFill: Char = '|'","eu.xap3y.xalib.objects.ProgressbarModifier.symbolFill"]},{"name":"val withPrefix: Boolean = true","description":"eu.xap3y.xalib.objects.TextModifier.withPrefix","location":"xalib/eu.xap3y.xalib.objects/-text-modifier/with-prefix.html","searchKeys":["withPrefix","val withPrefix: Boolean = true","eu.xap3y.xalib.objects.TextModifier.withPrefix"]}] diff --git a/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html b/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html new file mode 100644 index 0000000..162fda0 --- /dev/null +++ b/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html @@ -0,0 +1,80 @@ + + + + + formatOneLine + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

formatOneLine

+
+

Format a text with modifiers Only works on paper bukkit platforms

Return

Component

Parameters

map

LinkedHashMap

+
+ +
+
+
+ + diff --git a/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html b/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html index c23a47e..259c4e7 100644 --- a/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html +++ b/docs/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html @@ -61,12 +61,12 @@
-
+

format

-

Format a text with modifiers

Return

Component

Parameters

map

LinkedHashMap


fun format(text: String, modifier: FormatterModifiers): Component

Format a text with modifiers

Return

Component

Parameters

text

String

modifier

FormatterModifiers

+
fun format(text: String, modifier: FormatterModifiers): Component

Format a text with modifiers Only works on paper bukkit platforms

Return

Component

Parameters

text

String

modifier

FormatterModifiers

- +
- +
Link copied to clipboard
-
fun format(text: String, modifier: FormatterModifiers): Component

Format a text with modifiers

+
fun format(text: String, modifier: FormatterModifiers): Component

Format a text with modifiers Only works on paper bukkit platforms

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Format a text with modifiers Only works on paper bukkit platforms

diff --git a/docs/xalib/eu.xap3y.xalib.managers/-texter/console.html b/docs/xalib/eu.xap3y.xalib.managers/-texter/console.html index cb10270..2d1e9f5 100644 --- a/docs/xalib/eu.xap3y.xalib.managers/-texter/console.html +++ b/docs/xalib/eu.xap3y.xalib.managers/-texter/console.html @@ -66,7 +66,7 @@

console

-
fun console(text: String, modifiers: TextModifier)

Log a text into the console

Parameters

text

The text that will be logged

modifiers

The text modifiers


fun console(text: String)

Log a text into the console

Parameters

text

The text that will be logged

+
fun console(text: String, modifiers: TextModifier)

Log a text into the console

Parameters

text

The text that will be logged

modifiers

The text modifiers


fun console(text: String, wPrefix: Boolean)

Log a text into the console

Parameters

text

The text that will be logged

wPrefix

Boolean If the text should have a prefix


fun console(text: String)

Log a text into the console

Parameters

text

The text that will be logged

Functions

-
+
- +
Link copied to clipboard
-
fun console(text: String)
fun console(text: String, modifiers: TextModifier)

Log a text into the console

+
fun console(text: String)
fun console(text: String, modifiers: TextModifier)
fun console(text: String, wPrefix: Boolean)

Log a text into the console

diff --git a/docs/xalib/package-list b/docs/xalib/package-list index f003bd3..4dadbf9 100644 --- a/docs/xalib/package-list +++ b/docs/xalib/package-list @@ -7,12 +7,13 @@ $dokka.location:eu.xap3y.xalib.managers/ConfigManager/reloadConfig/#/PointingToD $dokka.location:eu.xap3y.xalib.managers/Texter.Companion///PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/index.html $dokka.location:eu.xap3y.xalib.managers/Texter.Companion/centered/#kotlin.String/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/centered.html $dokka.location:eu.xap3y.xalib.managers/Texter.Companion/colored/#kotlin.String/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/colored.html -$dokka.location:eu.xap3y.xalib.managers/Texter.Companion/format/#java.util.LinkedHashMap[kotlin.String,eu.xap3y.xalib.objects.FormatterModifiers]/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html $dokka.location:eu.xap3y.xalib.managers/Texter.Companion/format/#kotlin.String#eu.xap3y.xalib.objects.FormatterModifiers/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/format.html +$dokka.location:eu.xap3y.xalib.managers/Texter.Companion/formatOneLine/#java.util.LinkedHashMap[kotlin.String,eu.xap3y.xalib.objects.FormatterModifiers?]/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/format-one-line.html $dokka.location:eu.xap3y.xalib.managers/Texter.Companion/progressBar/#eu.xap3y.xalib.objects.ProgressbarModifier/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-companion/progress-bar.html $dokka.location:eu.xap3y.xalib.managers/Texter///PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/index.html $dokka.location:eu.xap3y.xalib.managers/Texter/Texter/#eu.xap3y.xalib.objects.TexterObj/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/-texter.html $dokka.location:eu.xap3y.xalib.managers/Texter/console/#kotlin.String#eu.xap3y.xalib.objects.TextModifier/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/console.html +$dokka.location:eu.xap3y.xalib.managers/Texter/console/#kotlin.String#kotlin.Boolean/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/console.html $dokka.location:eu.xap3y.xalib.managers/Texter/console/#kotlin.String/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/console.html $dokka.location:eu.xap3y.xalib.managers/Texter/debugLog/#kotlin.String#java.util.logging.Level/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/debug-log.html $dokka.location:eu.xap3y.xalib.managers/Texter/response/#org.bukkit.command.CommandSender#kotlin.String#eu.xap3y.xalib.objects.TextModifier/PointingToDeclaration/xalib/eu.xap3y.xalib.managers/-texter/response.html diff --git a/pom.xml b/pom.xml index 3d28080..bd13650 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ eu.xap3y xalib - 1.0.5.2 + 1.0.6 2.0.0 diff --git a/src/main/kotlin/eu/xap3y/xalib/managers/Texter.kt b/src/main/kotlin/eu/xap3y/xalib/managers/Texter.kt index abc86e2..a01792e 100644 --- a/src/main/kotlin/eu/xap3y/xalib/managers/Texter.kt +++ b/src/main/kotlin/eu/xap3y/xalib/managers/Texter.kt @@ -13,7 +13,6 @@ import net.kyori.adventure.text.event.HoverEvent import org.bukkit.Bukkit import org.bukkit.ChatColor import org.bukkit.command.CommandSender -import org.bukkit.entity.Player import java.util.logging.Level class Texter(private val data: TexterObj) { @@ -50,6 +49,15 @@ class Texter(private val data: TexterObj) { fun console(text: String, modifiers: TextModifier) = response(Bukkit.getConsoleSender(), text, modifiers) + /** + * Log a text into the console + * + * @param text The text that will be logged + * @param wPrefix Boolean If the text should have a prefix + */ + fun console(text: String, wPrefix: Boolean) = + response(Bukkit.getConsoleSender(), text, TextModifier(wPrefix)) + /** * Log a text into the console * @@ -142,6 +150,7 @@ class Texter(private val data: TexterObj) { /** * Format a text with modifiers + * Only works on paper bukkit platforms * * @param map LinkedHashMap * @return Component @@ -158,6 +167,7 @@ class Texter(private val data: TexterObj) { /** * Format a text with modifiers + * Only works on paper bukkit platforms * * @param text String * @param modifier FormatterModifiers diff --git a/src/main/kotlin/eu/xap3y/xalib/utils/Utils.kt b/src/main/kotlin/eu/xap3y/xalib/utils/Utils.kt index 148f3da..22a693e 100644 --- a/src/main/kotlin/eu/xap3y/xalib/utils/Utils.kt +++ b/src/main/kotlin/eu/xap3y/xalib/utils/Utils.kt @@ -3,7 +3,6 @@ package eu.xap3y.xalib.utils import org.bukkit.Bukkit import org.bukkit.Location import org.bukkit.entity.Player -import org.bukkit.inventory.ItemStack import org.bukkit.plugin.java.JavaPlugin import java.util.concurrent.CompletableFuture