diff --git a/build.gradle b/build.gradle index f8a25ac..341054b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { id 'java' - id "com.gradleup.shadow" version "8.3.0" + id "com.gradleup.shadow" version "8.3.4" } sourceCompatibility = JavaLanguageVersion.of(java_version as int) diff --git a/gradle.properties b/gradle.properties index 49e9262..95db702 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,14 +4,14 @@ java_version=21 mp3spi_version=1.9.5.4 -bukkit_api_version=1.20 -bukkit_version=1.21.1-R0.1-SNAPSHOT +bukkit_api_version=1.21 +bukkit_version=1.21.3-R0.1-SNAPSHOT mod_id=customdiscsplugin # Target an older API to make it compatible with older versions of Simple Voice Chat voicechat_api_version=2.5.0 -command_api_version=9.5.3 +command_api_version=9.6.0 -plugin_version=3.2.1a +plugin_version=3.3.0a maven_group=me.Navoei.customdiscsplugin archives_base_name=custom-discs \ No newline at end of file diff --git a/readme.md b/readme.md index c3bfb2d..6d07b87 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# Custom Discs v3.2.1a for Paper 1.21.1 ("a" for Athar's fork release from the original plugin here : https://github.com/Navoei/CustomDiscs ) +# Custom Discs v3.3.0a for Paper 1.21.3 ("a" for Athar's fork release from the original plugin here : https://github.com/Navoei/CustomDiscs ) A Paper fork of henkelmax's Audio Player. - Play custom music discs using the Simple Voice Chat API. (The voice chat mod is required on the client and server.) diff --git a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateSubCommand.java b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateSubCommand.java index 07f3600..1cd63a6 100644 --- a/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateSubCommand.java +++ b/src/main/java/me/Navoei/customdiscsplugin/command/SubCommands/CreateSubCommand.java @@ -149,11 +149,19 @@ public class CreateSubCommand extends CommandAPICommand { + "}";*/ //Bukkit.dispatchCommand(Bukkit.getConsoleSender(), command); + /*1.21.1 String itemCommand = "minecraft:give " + player.getName() + " minecraft:goat_horn[" + "minecraft:instrument={sound_event:{sound_id:\"intentionally_empty\"},use_duration:140,range:256F}," + "minecraft:custom_data={PublicBukkitValues:{\"" + namespaceHorn + "\":\"" + filename + "\",\""+namespaceCustomsoundrange+"\":"+retrieveCustomRangeIfSet+"f,\"" + namespaceCustomhorncooldown + "\":" + setHornCooldown + "}}," + "minecraft:lore=['{\"bold\":false,\"color\":\"gray\",\"italic\":false,\"text\":\"" + song_name + "\",\"underlined\":false}']" + "]"; + */ + + String itemCommand = "minecraft:give " + player.getName() + " minecraft:goat_horn[" + + "minecraft:instrument={sound_event:\"intentionally_empty\",use_duration:140,range:256F,description:{\"bold\":false,\"color\":\"gray\",\"italic\":false,\"text\":\"" + song_name + "\",\"underlined\":false}}," + + "minecraft:custom_data={PublicBukkitValues:{\"" + namespaceHorn + "\":\"" + filename + "\",\""+namespaceCustomsoundrange+"\":"+retrieveCustomRangeIfSet+"f,\"" + namespaceCustomhorncooldown + "\":" + setHornCooldown + "}}," + + "minecraft:lore=['{\"bold\":false,\"color\":\"gray\",\"italic\":false,\"text\":\"" + song_name + "\",\"underlined\":false}']" + + "]"; // Dispatch the command to give the item Bukkit.dispatchCommand(Bukkit.getConsoleSender(), itemCommand); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8fa365e..39b7482 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -3,7 +3,7 @@ version: '${plugin_version}' main: me.Navoei.customdiscsplugin.CustomDiscs api-version: '${bukkit_api_version}' prefix: CustomDiscs -authors: [ "Navoei" ] +authors: [ "Navoei", "Athar42", "alfw" ] description: A plugin which uses the Simple Voice Chat API to add custom music discs. depend: [ "voicechat", "ProtocolLib" ] dependencies: