mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2025-12-10 13:30:24 +05:00
Update dependencies + add support 1.21.3
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
@@ -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.)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user