mirror of
https://github.com/songoda/UltimateRepairing.git
synced 2025-02-18 05:21:51 +01:00
Sound fixes for legacy.
This commit is contained in:
parent
8786f8fc4d
commit
9f03f0f5ab
@ -315,12 +315,18 @@ public class RepairHandler {
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(instance, () -> {
|
||||
player.getWorld().playEffect(location, effect, blockTypeFinal);
|
||||
player.getWorld().playEffect(location, effect, Material.STONE);
|
||||
player.playSound(location, Sound.valueOf("BLOCK_ANVIL_LAND"), 1L, 1L);
|
||||
if (instance.isServerVersion(ServerVersion.V1_8))
|
||||
player.playSound(location, Sound.valueOf("ANVIL_LAND"), 1L, 1L);
|
||||
else
|
||||
player.playSound(location, Sound.valueOf("BLOCK_ANVIL_LAND"), 1L, 1L);
|
||||
}, 10L);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(instance, () -> player.getWorld().playEffect(location, effect, blockTypeFinal), 15L);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(instance, () -> player.getWorld().playEffect(location, effect, blockTypeFinal), 20L);
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(instance, () -> {
|
||||
player.playSound(location, Sound.valueOf("BLOCK_ANVIL_LAND"), 1L, 1L);
|
||||
if (instance.isServerVersion(ServerVersion.V1_8))
|
||||
player.playSound(location, Sound.valueOf("ANVIL_LAND"), 1L, 1L);
|
||||
else
|
||||
player.playSound(location, Sound.valueOf("BLOCK_ANVIL_LAND"), 1L, 1L);
|
||||
player.getWorld().playEffect(location, effect, blockTypeFinal);
|
||||
player.getWorld().playEffect(location, effect, Material.ANVIL);
|
||||
player.sendMessage(Methods.formatText(instance.references.getPrefix() + instance.getLocale().getMessage("event.repair.success")));
|
||||
|
Loading…
Reference in New Issue
Block a user