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!");