Nice... Work ;-;

This commit is contained in:
Brianna 2019-05-22 02:18:41 -04:00
parent 9d9af620ef
commit 9c817c07e5
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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