mSpigot-Parent/patches/api/0014-Riot-style-HCF-changes-for-better-QOL-PlayerPearlRef.patch
2023-07-21 06:34:25 +03:00

39 lines
1.1 KiB
Diff

From 3a546cfa32f0c331d4993b66949dfe4e473cf084 Mon Sep 17 00:00:00 2001
From: virtualWinter <winter@catmc.club>
Date: Fri, 21 Jul 2023 06:24:38 +0300
Subject: [PATCH] Riot-style HCF changes for better QOL
(PlayerPearlRefundEvent)
diff --git a/src/main/java/org/bukkit/event/player/PlayerPearlRefundEvent.java b/src/main/java/org/bukkit/event/player/PlayerPearlRefundEvent.java
new file mode 100644
index 00000000..7491f127
--- /dev/null
+++ b/src/main/java/org/bukkit/event/player/PlayerPearlRefundEvent.java
@@ -0,0 +1,21 @@
+package org.bukkit.event.player;
+
+import org.bukkit.entity.Player;
+import org.bukkit.event.HandlerList;
+
+public class PlayerPearlRefundEvent extends PlayerEvent {
+ private static final HandlerList handlers = new HandlerList();
+
+ public PlayerPearlRefundEvent(final Player player) {
+ super(player);
+ }
+
+ @Override
+ public HandlerList getHandlers() {
+ return handlers;
+ }
+
+ public static HandlerList getHandlerList() {
+ return handlers;
+ }
+}
\ No newline at end of file
--
2.41.0.windows.1