Codestyle

This commit is contained in:
Auxilor
2022-02-03 12:57:29 +00:00
parent 96bd53c089
commit 4ee0645a4e
8 changed files with 6 additions and 8 deletions

View File

@@ -235,7 +235,7 @@ public interface Config extends Cloneable {
*/
@NotNull
default String getString(@NotNull String path) {
return getString(path, false);
return getString(path, false, StringUtils.FormatOption.WITHOUT_PLACEHOLDERS);
}
/**

View File

@@ -48,7 +48,7 @@ fun SlotBuilder.onMiddleClick(action: (InventoryClickEvent, Slot, Menu) -> Unit)
@Deprecated("Use SlotUpdater instead")
@Suppress("DEPRECATION")
fun SlotBuilder.setModifier(action: (Player, Menu, ItemStack) -> Unit): SlotBuilder =
this.setModifier { a, b, c -> action(a, b, c) }
this.setUpdater { a, b, c -> c.apply { action(a, b, c) } }
/**
* @see SlotBuilder.setUpdater

View File

@@ -35,7 +35,7 @@ fun String.formatEco(
fun List<String>.formatEco(
player: Player? = null,
formatPlaceholders: Boolean = false
) = StringUtils.formatList(
): List<String> = StringUtils.formatList(
this,
player,
if (formatPlaceholders) StringUtils.FormatOption.WITH_PLACEHOLDERS else StringUtils.FormatOption.WITHOUT_PLACEHOLDERS