diff --git a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java index 18df0d299..4cbf28b2d 100644 --- a/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java +++ b/main/src/main/java/net/citizensnpcs/commands/NPCCommands.java @@ -44,9 +44,9 @@ import org.json.simple.parser.JSONParser; import com.google.common.base.Joiner; import com.google.common.base.Splitter; +import com.google.common.base.Strings; import com.google.common.collect.Iterables; import com.google.common.collect.Lists; -import com.mysql.jdbc.StringUtils; import net.citizensnpcs.Citizens; import net.citizensnpcs.Settings.Setting; @@ -2110,9 +2110,9 @@ public class NPCCommands { if (deathSound != null && deathSound.isEmpty()) { deathSound = "none"; } - if ((!StringUtils.isNullOrEmpty(ambientSound) && !ambientSound.equals("none")) - || (!StringUtils.isNullOrEmpty(deathSound) && !deathSound.equals("none")) - || (!StringUtils.isNullOrEmpty(hurtSound) && !hurtSound.equals("none"))) { + if ((!Strings.isNullOrEmpty(ambientSound) && !ambientSound.equals("none")) + || (!Strings.isNullOrEmpty(deathSound) && !deathSound.equals("none")) + || (!Strings.isNullOrEmpty(hurtSound) && !hurtSound.equals("none"))) { npc.data().setPersistent(NPC.SILENT_METADATA, false); } Messaging.sendTr(sender, Messages.SOUND_SET, npc.getName(), ambientSound, hurtSound, deathSound);