From e4c3053da7707e906f077f2d56c558e4cbd5ce76 Mon Sep 17 00:00:00 2001 From: Athar42 Date: Thu, 24 Jul 2025 21:42:43 +0200 Subject: [PATCH] Cosmetic changes, mostly in the readme for the download section with the usage of quotation marks. --- readme.md | 12 +++++++++--- .../SubCommands/SetHornCooldownSubCommand.java | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 3ce4c3d..a70913d 100644 --- a/readme.md +++ b/readme.md @@ -17,12 +17,18 @@ A Paper fork of henkelmax's Audio Player. Special thanks to Athar42 for maintain - Music files must be in the ```.wav```, ```.flac```, or ```.mp3``` format. Downloading Files: -- To download a file use the command ```/cd download ```. The link used to download a file must be a direct link (meaning the file must automatically begin downloading when accessing the link). Files must have the correct extension specified. An UnsupportedAudioFileException will be thrown in the server's console if the file extension is not correct (for example when giving a wav file the mp3 extension). Below is an example of how to use the command and a link to get direct downloads from Google Drive. -- Example: ```/cd download https://example.com/mysong mysong.mp3``` +- To download a file use the command ```/cd download ```. + - The link used to download a file must be a direct link (meaning the file must automatically begin downloading when accessing the link). + - Files must have the correct extension specified. + - An UnsupportedAudioFileException will be thrown in the server's console if the file extension is not correct (for example when giving a wav file the mp3 extension). + - Below is an example of how to use the command and a link to get direct downloads from Google Drive. + - Example: ```/cd download "https://example.com/mysong" mysong.mp3``` + - **To note** : Do not forget to use quotes (") for the URL. Without this, you'll get a command error. - Direct Google Drive links: https://lonedev6.github.io/gddl/ Set the range of a disc: -- To set the active range of a playable disc, just use the command ```/cd range ```. The range can be between 1 and the max value set in the config file (default : 256) +- To set the active range of a playable disc, just use the command ```/cd range ```. + - The range can be between 1 and the max value set in the config file (default : 256) - Example: ```/cd range 100``` Permission Nodes (Required to run the commands. Playing discs does not require a permission.): diff --git a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java index a64ac24..9b0d28a 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java +++ b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/SetHornCooldownSubCommand.java @@ -28,7 +28,7 @@ public class SetHornCooldownSubCommand extends CommandAPICommand { super("goatcooldown"); this.plugin = plugin; - this.withFullDescription(NamedTextColor.GRAY + "Set the cooldown for a modified goat horn (range from 1 to "+ this.plugin.hornMaxCooldown +" in ticks)."); + this.withFullDescription(NamedTextColor.GRAY + "Set the cooldown for a custom goat horn (range from 1 to "+ this.plugin.hornMaxCooldown +" in ticks)."); this.withUsage("/cd goatcooldown "); this.withPermission("customdiscs.horncooldown");