diff --git a/build.gradle.kts b/build.gradle.kts index 99dccbf..607ea4b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { } group = "gg.auroramc" -version = "2.0.0-SNAPSHOT" +version = "2.0.0" java { sourceCompatibility = JavaVersion.VERSION_21 diff --git a/src/main/java/gg/auroramc/aurora/api/command/CommandDispatcher.java b/src/main/java/gg/auroramc/aurora/api/command/CommandDispatcher.java index ac60587..741e1e8 100644 --- a/src/main/java/gg/auroramc/aurora/api/command/CommandDispatcher.java +++ b/src/main/java/gg/auroramc/aurora/api/command/CommandDispatcher.java @@ -9,7 +9,6 @@ import gg.auroramc.aurora.api.message.ActionBar; import gg.auroramc.aurora.api.message.Placeholder; import gg.auroramc.aurora.api.message.Text; -import gg.auroramc.aurora.api.util.InventorySerializer; import gg.auroramc.aurora.api.util.ItemUtils; import gg.auroramc.aurora.api.util.TriConsumer; import gg.auroramc.aurora.expansions.economy.AuroraEconomy; @@ -167,9 +166,9 @@ private static void playSound(Player player, String cmd) { if (args.length == 1) { player.playSound(player, sound, 1, 1); } else if (args.length == 2) { - player.playSound(player.getLocation(), args[0], Float.parseFloat(args[1]), 1); + player.playSound(player.getLocation(), sound, Float.parseFloat(args[1]), 1); } else if (args.length == 3) { - player.playSound(player.getLocation(), args[0], Float.parseFloat(args[1]), Float.parseFloat(args[2])); + player.playSound(player.getLocation(), sound, Float.parseFloat(args[1]), Float.parseFloat(args[2])); } }