From 648a7e4dcd485b13448aa953ebdc13d43869c65e Mon Sep 17 00:00:00 2001 From: Xorgon Date: Sat, 30 Sep 2023 15:57:17 -0400 Subject: [PATCH 1/3] Added CompoundSound. --- .../supaham/commons/bukkit/CompoundSound.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 commons-bukkit/src/main/java/com/supaham/commons/bukkit/CompoundSound.java diff --git a/commons-bukkit/src/main/java/com/supaham/commons/bukkit/CompoundSound.java b/commons-bukkit/src/main/java/com/supaham/commons/bukkit/CompoundSound.java new file mode 100644 index 0000000..9614402 --- /dev/null +++ b/commons-bukkit/src/main/java/com/supaham/commons/bukkit/CompoundSound.java @@ -0,0 +1,29 @@ +package com.supaham.commons.bukkit; + +import org.bukkit.Location; +import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; + +import javax.annotation.Nonnull; + +public class CompoundSound extends Sound { + private final SingleSound[] singleSounds; + + /** + * Constructs a compound sound with a List of SingleSound objects. + * + * @param singleSounds sounds to play + * @see SingleSound + */ + public CompoundSound(@Nonnull SingleSound[] singleSounds) { + this.singleSounds = singleSounds; + } + + + @Override + public void play(@NotNull Player player, @NotNull Location location) { + for (SingleSound singleSound : singleSounds) { + singleSound.play(player, location); + } + } +} From f056e16c543df88a8d6274c98a95526756a36c5c Mon Sep 17 00:00:00 2001 From: Xorgon Date: Sat, 28 Oct 2023 14:23:37 -0400 Subject: [PATCH 2/3] Bumped Spigot version to 1.19.3. --- commons-bukkit/pom.xml | 2 +- .../java/com/supaham/commons/bukkit/utils/ReflectionUtils.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commons-bukkit/pom.xml b/commons-bukkit/pom.xml index 2393832..aaf8b75 100644 --- a/commons-bukkit/pom.xml +++ b/commons-bukkit/pom.xml @@ -12,7 +12,7 @@ commons-bukkit - 1.19.2-R0.1-SNAPSHOT + 1.19.3-R0.1-SNAPSHOT 0.1.0 1.12-1.6.5 0.5.0-SNAPSHOT diff --git a/commons-bukkit/src/main/java/com/supaham/commons/bukkit/utils/ReflectionUtils.java b/commons-bukkit/src/main/java/com/supaham/commons/bukkit/utils/ReflectionUtils.java index 4e059b7..15fbf56 100644 --- a/commons-bukkit/src/main/java/com/supaham/commons/bukkit/utils/ReflectionUtils.java +++ b/commons-bukkit/src/main/java/com/supaham/commons/bukkit/utils/ReflectionUtils.java @@ -2,7 +2,7 @@ import net.minecraft.network.protocol.Packet; import org.bukkit.Bukkit; -import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer; +import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.inventory.Inventory; From 080aabde46c0941b811f25a0f74c797fa1cb87cc Mon Sep 17 00:00:00 2001 From: Xorgon Date: Sun, 11 Aug 2024 00:05:25 -0400 Subject: [PATCH 3/3] Bumped Aikar's ACF version for memory leak fix. --- commons-minecraft/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commons-minecraft/pom.xml b/commons-minecraft/pom.xml index df55596..1e585e4 100644 --- a/commons-minecraft/pom.xml +++ b/commons-minecraft/pom.xml @@ -14,7 +14,7 @@ Commons-Minecraft - 0.5.0-SNAPSHOT + 0.5.1-SNAPSHOT