mirror of
https://github.com/SPAWNRYS-ban/FUCK-CustomDiscs.git
synced 2026-03-26 17:08:13 +05:00
Update dependencies + add support 1.21.3
This commit is contained in:
@@ -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