namespace Minecraft.Server.FourKit.Event.Player; using Minecraft.Server.FourKit.Entity; /// /// Called when a player is about to teleport because it is in contact with a portal. /// public class PlayerPortalEvent : PlayerTeleportEvent { internal PlayerPortalEvent(Player player, Location from, Location to) : base(player, from, to, TeleportCause.UNKNOWN) { } /// /// Constructs a new PlayerPortalEvent with the given cause. /// /// The player entering the portal. /// The location the player is coming from. /// The location the player is teleporting to. /// The cause of this teleportation (should be a portal-related cause). public PlayerPortalEvent(Player player, Location from, Location to, TeleportCause cause) : base(player, from, to, cause) { } }