From dc83d546b82f45227455277c5cc2947c68bee39b Mon Sep 17 00:00:00 2001 From: Bartek Wreczycki <46637209+AMDBartek@users.noreply.github.com> Date: Wed, 8 Mar 2023 23:38:03 +0000 Subject: [PATCH] Fix mistake I made whilst copying my changes into the PR --- .../customdiscsplugin/command/SubCommands/CreateCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java index b21b26b..7070783 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java +++ b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java @@ -66,7 +66,7 @@ public class CreateCommand extends SubCommand { File getDirectory = new File(CustomDiscs.getInstance().getDataFolder(), "musicdata"); File songFile = new File(getDirectory.getPath(), filename); if (songFile.exists()) { - if (getFileExtension(filename).equals("wav") || getFileExtension(filename).equals("mp3"), getFileExtension(filename).equals("flac")) { + if (getFileExtension(filename).equals("wav") || getFileExtension(filename).equals("mp3") || getFileExtension(filename).equals("flac")) { songname = args[1]; } else { player.sendMessage(ChatColor.RED + "File is not in wav, flac, or mp3 format!");