diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java index 906648a..f9d26da 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/anchor/EAnchor.java @@ -57,10 +57,10 @@ public class EAnchor implements Anchor { } ticksLeft = ticksLeft + 20 * 60 * 30; - Sound sound = EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_8) ? Sound.ENTITY_PLAYER_LEVELUP : Sound.valueOf("LEVEL_UP"); + Sound sound = EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_9) ? Sound.ENTITY_PLAYER_LEVELUP : Sound.valueOf("LEVEL_UP"); player.playSound(player.getLocation(), sound, 0.6F, 15.0F); - if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_8)) + if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_9)) player.getWorld().spawnParticle(Particle.SPELL_WITCH, getLocation().add(.5, .5, .5), 100, .5, .5, .5); } diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java index 0e389a5..f48c740 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/listeners/InteractListeners.java @@ -63,10 +63,10 @@ public class InteractListeners implements Listener { if (player.getGameMode() != GameMode.CREATIVE) Methods.takeItem(player, 1); - Sound sound = EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_8) ? Sound.ENTITY_PLAYER_LEVELUP : Sound.valueOf("LEVEL_UP"); + Sound sound = EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_9) ? Sound.ENTITY_PLAYER_LEVELUP : Sound.valueOf("LEVEL_UP"); player.playSound(player.getLocation(), sound, 0.6F, 15.0F); - if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_8)) + if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_9)) player.getWorld().spawnParticle(Particle.SPELL_WITCH, anchor.getLocation().add(.5, .5, .5), 100, .5, .5, .5); event.setCancelled(true); diff --git a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/utils/gui/Range.java b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/utils/gui/Range.java index 31a5bc4..2918a8e 100644 --- a/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/utils/gui/Range.java +++ b/EpicAnchors-Plugin/src/main/java/com/songoda/epicanchors/utils/gui/Range.java @@ -24,7 +24,7 @@ public class Range { this.bottom = bottom; if (onClickSound == null) { - if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_8)) { + if (EpicAnchorsPlugin.getInstance().isServerVersionAtLeast(ServerVersion.V1_9)) { this.onClickSound = Sound.UI_BUTTON_CLICK; } else { this.onClickSound = Sound.valueOf("CLICK");