mirror of
https://github.com/filoghost/ChestCommands.git
synced 2025-02-19 21:11:42 +01:00
Rename utility class
This commit is contained in:
parent
f667f967ea
commit
4e35757194
@ -16,7 +16,7 @@ package me.filoghost.chestcommands.menu.icon;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import me.filoghost.chestcommands.util.StringUtils;
|
||||
import me.filoghost.chestcommands.util.Strings;
|
||||
|
||||
public class PermissionChecker {
|
||||
|
||||
@ -28,7 +28,7 @@ public class PermissionChecker {
|
||||
permission = permission.trim();
|
||||
}
|
||||
|
||||
if (StringUtils.isNullOrEmpty(permission)) {
|
||||
if (Strings.isNullOrEmpty(permission)) {
|
||||
this.permission = null;
|
||||
negated = false;
|
||||
} else {
|
||||
|
@ -103,7 +103,7 @@ public final class MaterialsHelper {
|
||||
}
|
||||
|
||||
public static String formatMaterial(Material material) {
|
||||
return StringUtils.capitalizeFully(material.toString().replace("_", " "));
|
||||
return Strings.capitalizeFully(material.toString().replace("_", " "));
|
||||
}
|
||||
|
||||
private static Collection<Material> getExistingMaterials(String... materialEnumNames) {
|
||||
|
@ -77,7 +77,7 @@ public class Registry<T> {
|
||||
}
|
||||
|
||||
private String toKeyFormat(String enumValueName) {
|
||||
return StringUtils.stripChars(enumValueName, KEY_IGNORE_CHARS).toLowerCase();
|
||||
return Strings.stripChars(enumValueName, KEY_IGNORE_CHARS).toLowerCase();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -14,9 +14,9 @@
|
||||
*/
|
||||
package me.filoghost.chestcommands.util;
|
||||
|
||||
public final class StringUtils {
|
||||
public final class Strings {
|
||||
|
||||
private StringUtils() {}
|
||||
private Strings() {}
|
||||
|
||||
|
||||
public static String stripChars(String input, char... removed) {
|
Loading…
Reference in New Issue
Block a user