mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
[CI skip] Updated Teleport Sounds and Fixed The “color codes are supported text” for elevators (#1283)
* Update TeleportationSequence.java * Update TeleportationSequence.java * Update Elevator.java
This commit is contained in:
parent
a29016a391
commit
f90f1c609f
@ -30,7 +30,7 @@ public final class Elevator {
|
|||||||
pl.closeInventory();
|
pl.closeInventory();
|
||||||
pl.sendMessage("");
|
pl.sendMessage("");
|
||||||
pl.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&l>> &ePlease enter a Name for this Floor in your Chat!"));
|
pl.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&l>> &ePlease enter a Name for this Floor in your Chat!"));
|
||||||
pl.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&l>> &e(Chat Colors are supported!"));
|
pl.sendMessage(ChatColor.translateAlternateColorCodes('&', "&4&l>> &e(Chat Colors are supported!)"));
|
||||||
pl.sendMessage("");
|
pl.sendMessage("");
|
||||||
|
|
||||||
ChatInput.waitForPlayer(SlimefunPlugin.instance, pl, message -> {
|
ChatInput.waitForPlayer(SlimefunPlugin.instance, pl, message -> {
|
||||||
|
@ -82,7 +82,7 @@ public final class TeleportationSequence {
|
|||||||
}
|
}
|
||||||
|
|
||||||
destination.getWorld().spawnParticle(Particle.PORTAL,new Location(destination.getWorld(), destination.getX(), destination.getY() + 1, destination.getZ()),progress * 2, 0.2F, 0.8F, 0.2F );
|
destination.getWorld().spawnParticle(Particle.PORTAL,new Location(destination.getWorld(), destination.getX(), destination.getY() + 1, destination.getZ()),progress * 2, 0.2F, 0.8F, 0.2F );
|
||||||
destination.getWorld().playSound(destination, Sound.ENTITY_BLAZE_DEATH, 1F, 1.4F);
|
destination.getWorld().playSound(destination, Sound.BLOCK_BEACON_ACTIVATE, 1F, 1F);
|
||||||
SlimefunPlugin.getUtilities().teleporterUsers.remove(uuid);
|
SlimefunPlugin.getUtilities().teleporterUsers.remove(uuid);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -93,7 +93,7 @@ public final class TeleportationSequence {
|
|||||||
subtitle.send(TitleType.SUBTITLE, p);
|
subtitle.send(TitleType.SUBTITLE, p);
|
||||||
|
|
||||||
source.getWorld().spawnParticle(Particle.PORTAL, source, progress * 2, 0.2F, 0.8F, 0.2F);
|
source.getWorld().spawnParticle(Particle.PORTAL, source, progress * 2, 0.2F, 0.8F, 0.2F);
|
||||||
source.getWorld().playSound(source, Sound.UI_BUTTON_CLICK, 1F, 0.6F);
|
source.getWorld().playSound(source, Sound.BLOCK_BEACON_AMBIENT, 1F, 0.6F);
|
||||||
|
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(SlimefunPlugin.instance, () -> updateProgress(uuid, speed, progress + speed, source, destination, resistance), 10L);
|
Bukkit.getScheduler().scheduleSyncDelayedTask(SlimefunPlugin.instance, () -> updateProgress(uuid, speed, progress + speed, source, destination, resistance), 10L);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user