sound fix when in group
This commit is contained in:
parent
9f65250771
commit
854fdd1c1d
1 changed files with 1 additions and 2 deletions
|
|
@ -222,10 +222,9 @@ public class MinecleanerManager {
|
||||||
if(plugin.getGroupManager().getGroup(player[0]) != null) {
|
if(plugin.getGroupManager().getGroup(player[0]) != null) {
|
||||||
World world = player[0].getWorld();
|
World world = player[0].getWorld();
|
||||||
MinecleanerGroupManager.MinecleanerGroup group = plugin.getGroupManager().getGroup(player[0]);
|
MinecleanerGroupManager.MinecleanerGroup group = plugin.getGroupManager().getGroup(player[0]);
|
||||||
world.playSound(Bukkit.getPlayer(group.getOwner()).getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 0.5f, 0.5f);
|
|
||||||
|
|
||||||
|
|
||||||
if(!isSuccessfullyCleared) {
|
if(!isSuccessfullyCleared) {
|
||||||
|
world.playSound(Bukkit.getPlayer(group.getOwner()).getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 0.5f, 0.5f);
|
||||||
for(Iterator<UUID> iterator = plugin.getGroupManager().getGroup(player[0]).getPlayers().iterator(); iterator.hasNext();) {
|
for(Iterator<UUID> iterator = plugin.getGroupManager().getGroup(player[0]).getPlayers().iterator(); iterator.hasNext();) {
|
||||||
Player iteratorPlayer = Bukkit.getPlayer(iterator.next());
|
Player iteratorPlayer = Bukkit.getPlayer(iterator.next());
|
||||||
assert iteratorPlayer != null;
|
assert iteratorPlayer != null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue