mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Add unique ID to PlayerResourcePackStatusEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9a3f67bc0b
commit
c5f936087b
1 changed files with 14 additions and 1 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue