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; + } + +}