Update dependencies + add support 1.21.3

This commit is contained in:
Athar42
2024-11-05 12:15:32 +01:00
parent e8c0e13094
commit 307daabac2
5 changed files with 15 additions and 7 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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.)

View File

@@ -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);

View File

@@ -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: