mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-26 18:11:43 +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"))
|
.description(user.getTranslation(PROTECTION_PANEL + "reset-to-default.description"))
|
||||||
.clickHandler((panel, user1, clickType, slot) -> {
|
.clickHandler((panel, user1, clickType, slot) -> {
|
||||||
island.setFlagsDefaults();
|
island.setFlagsDefaults();
|
||||||
|
user.getPlayer().playSound(user.getLocation(), Sound.ENTITY_TNT_PRIMED, 1F, 1F);
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.build());
|
.build());
|
||||||
|
Loading…
Reference in New Issue
Block a user