Sounds are now stored as sounds rather than strings in Settings

This commit is contained in:
William278 committed 2021-02-06 16:11:10 +00:00
1 parent 7fef1b7356
commit c03c44252a
3 files changed
+9 -8

No files matched your search

@@ -34,7 +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);
p.playSound(p.getLocation(), HuskHomes.settings.getTeleportationCompleteSound(), 1, 1);
messageManager.sendMessage(p, "teleporting_complete");
dataManager.setPlayerTeleporting(p, false);
dataManager.clearPlayerDestination(p.getName());