mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-11-10 20:41:30 +01:00
Nice... Work ;-;
This commit is contained in:
parent
9d9af620ef
commit
9c817c07e5
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user