LogHelper.showWarning("commandSignInvalid", player);
sign.getBlock().breakNaturally();
} else {
if (material == Material.WOOL || material == Material.INK_SACK){
List<DyeColor> dyeMatches = ClosestMatches.dyeColor(data[1]);
DyeColor dye = (dyeMatches.size() > 0 ? dyeMatches.get(0) : null);
if (dye == null){
LogHelper.showWarning("commandSignInvalid", player);
sign.getBlock().breakNaturally();
return;
} else {
e.setLine(1, WordUtils.capitalize(material.name().toLowerCase().replaceAll("_", "")) + ":" + WordUtils.capitalize(dye.toString().toLowerCase().replaceAll("_", "")));
}
} else {
if (!data[1].matches(CommandsEX.intRegex)){
LogHelper.showWarning("commandSignInvalid", player);
sign.getBlock().breakNaturally();