mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-01 00:10:40 +01:00
Play a sound when resetting the island flags to default
This commit is contained in:
parent
f66fafd0aa
commit
7b476d6bd8
@ -169,6 +169,7 @@ public class SettingsTab implements Tab, ClickHandler {
|
||||
.description(user.getTranslation(PROTECTION_PANEL + "reset-to-default.description"))
|
||||
.clickHandler((panel, user1, clickType, slot) -> {
|
||||
island.setFlagsDefaults();
|
||||
user.getPlayer().playSound(user.getLocation(), Sound.ENTITY_TNT_PRIMED, 1F, 1F);
|
||||
return true;
|
||||
})
|
||||
.build());
|
||||
|
Loading…
Reference in New Issue
Block a user