From 234af27653528363309bce666721692fc552baed Mon Sep 17 00:00:00 2001 From: NONPLAY <76615486+NONPLAYT@users.noreply.github.com> Date: Thu, 28 Nov 2024 19:47:25 +0300 Subject: [PATCH] fix MaterialUtil --- .../space/bxteam/commons/bukkit/inventory/MaterialUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-bukkit/src/main/java/space/bxteam/commons/bukkit/inventory/MaterialUtil.java b/commons-bukkit/src/main/java/space/bxteam/commons/bukkit/inventory/MaterialUtil.java index ce39a00..ec027f0 100644 --- a/commons-bukkit/src/main/java/space/bxteam/commons/bukkit/inventory/MaterialUtil.java +++ b/commons-bukkit/src/main/java/space/bxteam/commons/bukkit/inventory/MaterialUtil.java @@ -1,6 +1,5 @@ package space.bxteam.commons.bukkit.inventory; -import org.apache.commons.lang3.StringUtils; import org.bukkit.Material; import org.jetbrains.annotations.NotNull; @@ -18,6 +17,7 @@ private MaterialUtil() { * @return the formatted material name */ public static String format(@NotNull Material material) { - return StringUtils.capitalize(material.name().toLowerCase().replace("_", " ")); + String name = material.name().toLowerCase().replace("_", " "); + return name.substring(0, 1).toUpperCase() + name.substring(1); } }