mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 12:46:04 +01:00
Further fix to /npc sound
This commit is contained in:
parent
3cef996a24
commit
b3589e40f9
@ -1747,8 +1747,9 @@ public class NPCCommands {
|
||||
if (deathSound != null && deathSound.isEmpty()) {
|
||||
deathSound = "none";
|
||||
}
|
||||
if (!StringUtils.isNullOrEmpty(ambientSound) || !StringUtils.isNullOrEmpty(deathSound)
|
||||
|| !StringUtils.isNullOrEmpty(hurtSound)) {
|
||||
if ((!StringUtils.isNullOrEmpty(ambientSound) && !ambientSound.equals("none"))
|
||||
|| (!StringUtils.isNullOrEmpty(deathSound) && !deathSound.equals("none"))
|
||||
|| (!StringUtils.isNullOrEmpty(hurtSound) && !hurtSound.equals("none"))) {
|
||||
npc.data().setPersistent(NPC.SILENT_METADATA, false);
|
||||
}
|
||||
Messaging.sendTr(sender, Messages.SOUND_SET, npc.getName(), ambientSound, hurtSound, deathSound);
|
||||
|
Loading…
Reference in New Issue
Block a user