From c5f936087b24c129cffc09396dd090bb11452b2a Mon Sep 17 00:00:00 2001
From: Bukkit/Spigot <noreply+git-bukkit@papermc.io>
Date: Wed, 6 Dec 2023 20:27:57 +1100
Subject: [PATCH] Add unique ID to PlayerResourcePackStatusEvent

By: md_5 <git@md-5.net>
---
 .../player/PlayerResourcePackStatusEvent.java     | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerResourcePackStatusEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerResourcePackStatusEvent.java
index 8ed6214e0d..e2c4f9a045 100644
--- a/paper-api/src/main/java/org/bukkit/event/player/PlayerResourcePackStatusEvent.java
+++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerResourcePackStatusEvent.java
@@ -1,5 +1,6 @@
 package org.bukkit.event.player;
 
+import java.util.UUID;
 import org.bukkit.entity.Player;
 import org.bukkit.event.HandlerList;
 import org.jetbrains.annotations.NotNull;
@@ -11,13 +12,25 @@ import org.jetbrains.annotations.NotNull;
 public class PlayerResourcePackStatusEvent extends PlayerEvent {
 
     private static final HandlerList handlers = new HandlerList();
+    private final UUID id;
     private final Status status;
 
-    public PlayerResourcePackStatusEvent(@NotNull final Player who, @NotNull Status resourcePackStatus) {
+    public PlayerResourcePackStatusEvent(@NotNull final Player who, @NotNull UUID id, @NotNull Status resourcePackStatus) {
         super(who);
+        this.id = id;
         this.status = resourcePackStatus;
     }
 
+    /**
+     * Gets the unique ID of this pack.
+     *
+     * @return unique resource pack ID.
+     */
+    @NotNull
+    public UUID getID() {
+        return id;
+    }
+
     /**
      * Gets the status of this pack.
      *