Skip to content

Commit

Permalink
Added sound for remaining actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon D authored and Leon D committed Apr 6, 2024
1 parent d2f5ce1 commit 40a2d99
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public void onInventoryClick(@NotNull InventoryClickEvent event) {
if (BugReportManager.debugMode) plugin.getLogger().info("Opening archived confirmation GUI.");
switch (customDisplayName) {
case "Archive" -> {
player.playSound(player.getLocation(), "ui.button.click", 0.6F, 1.0F);

if (BugReportManager.debugMode) plugin.getLogger().info("Archiving report: " + reportIDGUI);
new BugReportConfirmationGUI().archiveReport(player, reportIDGUI, true);

Expand All @@ -123,6 +125,8 @@ public void onInventoryClick(@NotNull InventoryClickEvent event) {
HandlerList.unregisterAll(this);
}
case "Back" -> {
player.playSound(player.getLocation(), "ui.button.click", 0.6F, 1.0F);

if (BugReportManager.debugMode) plugin.getLogger().info("Going back to bug reports.");
player.openInventory(fromArchivedGUI ? getArchivedBugReportsGUI(player) : getBugReportGUI(player));

Expand All @@ -135,6 +139,8 @@ public void onInventoryClick(@NotNull InventoryClickEvent event) {
if (BugReportManager.debugMode) plugin.getLogger().info("Opening delete confirmation GUI.");
switch (customDisplayName) {
case "Delete" -> {
player.playSound(player.getLocation(), "ui.button.click", 0.6F, 1.0F);

if (BugReportManager.debugMode) plugin.getLogger().info("Deleting report: " + reportIDGUI);
new BugReportConfirmationGUI().deleteReport(player, reportIDGUI, isArchivedDetails);

Expand All @@ -143,6 +149,8 @@ public void onInventoryClick(@NotNull InventoryClickEvent event) {
HandlerList.unregisterAll(this);
}
case "Back" -> {
player.playSound(player.getLocation(), "ui.button.click", 0.6F, 1.0F);

if (BugReportManager.debugMode) plugin.getLogger().info("Going back to archived reports.");
player.openInventory(fromArchivedGUI ? getArchivedBugReportsGUI(player) : getBugReportGUI(player));

Expand Down

0 comments on commit 40a2d99

Please sign in to comment.