|
@ -61,10 +61,12 @@ public class Resources { |
|
|
} |
|
|
} |
|
|
public static String getAudioFilePath(String name) { |
|
|
public static String getAudioFilePath(String name) { |
|
|
name = audio_source_directory + (audio_source_directory.endsWith("/")? "" : "/") + name + ".opus"; |
|
|
name = audio_source_directory + (audio_source_directory.endsWith("/")? "" : "/") + name + ".opus"; |
|
|
System.out.println("Dateiname: " + name); |
|
|
|
|
|
if((new File(name)).exists()) return name; |
|
|
if((new File(name)).exists()) return name; |
|
|
else return null; |
|
|
else return null; |
|
|
} |
|
|
} |
|
|
|
|
|
public static String getAudioSourceDirectory(){ |
|
|
|
|
|
return audio_source_directory; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
private static void initChannelRestrict() { |
|
|
private static void initChannelRestrict() { |
|
|
if(propertiesFile.containsKey("restrict_commands_to_channel")) |
|
|
if(propertiesFile.containsKey("restrict_commands_to_channel")) |
|
|