Skip to content

Commit

Permalink
increased wanted volume
Browse files Browse the repository at this point in the history
  • Loading branch information
TiagoFar78 committed Jun 20, 2024
1 parent 0e45f39 commit 1e3cd1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/tiagofar78/prisonescape/game/PEGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,8 @@ private void setWanted(Prisoner prisoner, PEPlayer guard) {
playerOnLobby.addScoreboardWantedTeamMember(PRISONERS_TEAM_NAME, prisonerName);
}

prisoner.playSound(Sound.BLOCK_BAMBOO_BREAK);
guard.playSound(Sound.BLOCK_BAMBOO_BREAK);
prisoner.playSound(Sound.BLOCK_BAMBOO_BREAK, 20);
guard.playSound(Sound.BLOCK_BAMBOO_BREAK, 20);
}

private void removeWanted(Prisoner prisoner) {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/net/tiagofar78/prisonescape/game/PEPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,16 @@ public void setCursorItem(ItemStack item) {
}

public void playSound(Sound sound) {
playSound(sound, 1);
}

public void playSound(Sound sound, int volume) {
Player player = getBukkitPlayer();
if (player == null) {
return;
}

player.playSound(player, sound, 1, 0.5f);
player.playSound(player, sound, volume, 0.5f);
}

public boolean isSneaking() {
Expand Down

0 comments on commit 1e3cd1f

Please sign in to comment.