RedisBungee/RedisBungee-Bungee/src/main/java/com/imaginarycode/minecraft/redisbungee/events/PlayerJoinedNetworkEvent.java

29 lines
801 B
Java
Raw Normal View History

2022-04-14 11:59:02 +00:00
package com.imaginarycode.minecraft.redisbungee.events;
2022-04-13 16:08:46 +00:00
import com.imaginarycode.minecraft.redisbungee.api.events.IPlayerJoinedNetworkEvent;
2022-04-13 16:08:46 +00:00
import net.md_5.bungee.api.plugin.Event;
import java.util.UUID;
/**
* This event is sent when a player joins the network. RedisBungee sends the event only when
* the proxy the player has been connected to is different than the local proxy.
* <p>
* This event corresponds to {@link net.md_5.bungee.api.event.PostLoginEvent}, and is fired
* asynchronously.
*
* @since 0.3.4
*/
public class PlayerJoinedNetworkEvent extends Event implements IPlayerJoinedNetworkEvent {
2022-04-13 16:08:46 +00:00
private final UUID uuid;
public PlayerJoinedNetworkEvent(UUID uuid) {
this.uuid = uuid;
}
@Override
2022-04-13 16:08:46 +00:00
public UUID getUuid() {
return uuid;
}
}