fix: add undisguise sound
This commit is contained in:
parent
1dbb199258
commit
7eca066cf1
2 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,9 @@
|
||||||
[FEATURES]
|
[FEATURES]
|
||||||
- Players are now able to mark disguises as favorites.
|
- Players are now able to mark disguises as favorites.
|
||||||
|
|
||||||
|
[FIXES]
|
||||||
|
- Added a missing sound when players undisguised.
|
||||||
|
|
||||||
1.2.0-RC1: Update n°12 (XX/XX/25)
|
1.2.0-RC1: Update n°12 (XX/XX/25)
|
||||||
[FEATURES]
|
[FEATURES]
|
||||||
- Updated to support Minecraft 1.21.5.
|
- Updated to support Minecraft 1.21.5.
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package xyz.ineanto.nicko.gui.items.home;
|
package xyz.ineanto.nicko.gui.items.home;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.Sound;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.ClickType;
|
import org.bukkit.event.inventory.ClickType;
|
||||||
import xyz.ineanto.nicko.appearance.AppearanceManager;
|
import xyz.ineanto.nicko.appearance.AppearanceManager;
|
||||||
|
@ -40,6 +41,7 @@ public class ResetItem {
|
||||||
player.sendMessage(playerLanguage.translateWithWhoosh(LanguageKey.Event.Appearance.Remove.OK));
|
player.sendMessage(playerLanguage.translateWithWhoosh(LanguageKey.Event.Appearance.Remove.OK));
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(playerLanguage.translateWithOops(LanguageKey.Event.Appearance.Remove.ERROR));
|
player.sendMessage(playerLanguage.translateWithOops(LanguageKey.Event.Appearance.Remove.ERROR));
|
||||||
|
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 1f);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue