mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
Closes #8, adds options for setting custom teleport sounds
This commit is contained in:
1 parent
5c6a3df5a4
commit
90127d819d
4 files changed
+21
-1
No files matched your search
@@ -5,6 +5,7 @@ import me.william278.huskhomes2.Objects.RandomPoint;
|
||||
import me.william278.huskhomes2.Objects.TeleportationPoint;
|
||||
import me.william278.huskhomes2.Objects.TimedTeleport;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.time.Instant;
|
||||
@@ -33,6 +34,7 @@ public class teleportManager {
|
||||
String server = teleportationPoint.getServer();
|
||||
if (!HuskHomes.settings.doBungee() || server.equals(HuskHomes.settings.getServerID())) {
|
||||
p.teleport(teleportationPoint.getLocation());
|
||||
p.playSound(p.getLocation(), Sound.valueOf(HuskHomes.settings.getTeleportationCompleteSound()), 1, 1);
|
||||
messageManager.sendMessage(p, "teleporting_complete");
|
||||
dataManager.setPlayerTeleporting(p, false);
|
||||
dataManager.clearPlayerDestination(p.getName());
|
||||
|
||||
Reference in new issue
Block a user