From ef801a5e5486bae16465bc0b4184cbf4b05770db Mon Sep 17 00:00:00 2001 From: Bartek Wreczycki <46637209+AMDBartek@users.noreply.github.com> Date: Wed, 8 Mar 2023 23:25:41 +0000 Subject: [PATCH] Allow flac file extension in command --- .../customdiscsplugin/command/SubCommands/CreateCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 84ea3b9..b21b26b 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java +++ b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateCommand.java @@ -66,10 +66,10 @@ 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")) { + 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 or mp3 format!"); + player.sendMessage(ChatColor.RED + "File is not in wav, flac, or mp3 format!"); return; } } else {