From 2a715306d3016c8115d16904eec971bc17cf4cb4 Mon Sep 17 00:00:00 2001 From: yaohunya <31456652@qq.com> Date: Fri, 2 Aug 2024 19:27:16 +0800 Subject: [PATCH] init --- .../mclive/event/LiveConnectEvents.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/main/java/com/io/yutian/mclive/event/LiveConnectEvents.java diff --git a/src/main/java/com/io/yutian/mclive/event/LiveConnectEvents.java b/src/main/java/com/io/yutian/mclive/event/LiveConnectEvents.java new file mode 100644 index 0000000..d7bdda5 --- /dev/null +++ b/src/main/java/com/io/yutian/mclive/event/LiveConnectEvents.java @@ -0,0 +1,41 @@ +package com.io.yutian.mclive.event; + +import com.io.yutian.livemutually.liveroom.User; +import org.bukkit.entity.Player; +import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; + +public class LiveConnectEvents extends Event { + private static final HandlerList handlers = new HandlerList(); + private Player player; + private String roomID; + private String pluginName; + + public LiveConnectEvents(Player player, String roomId,String pluginName) { + this.player = player; + this.roomID = roomId; + this.pluginName = pluginName; + } + + public Player getPlayer() { + return player; + } + + public String getRoomID() { + return roomID; + } + + public String getPluginName() { + return pluginName; + } + + @Override + public HandlerList getHandlers() { + return handlers; + } + + public final static HandlerList getHandlerList() { + return handlers; + } + +}