Play a sound when resetting the island flags to default

This commit is contained in:
Florian CUNY 2020-05-13 18:18:46 +02:00
parent f66fafd0aa
commit 7b476d6bd8

View File

@ -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());