mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-27 09:26:47 +00:00
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
23 lines
960 B
C#
23 lines
960 B
C#
namespace Minecraft.Server.FourKit.Event.Player;
|
|
|
|
using Minecraft.Server.FourKit.Entity;
|
|
|
|
/// <summary>
|
|
/// Called when a player is about to teleport because it is in contact with a portal.
|
|
/// </summary>
|
|
public class PlayerPortalEvent : PlayerTeleportEvent
|
|
{
|
|
internal PlayerPortalEvent(Player player, Location from, Location to)
|
|
: base(player, from, to, TeleportCause.UNKNOWN) { }
|
|
|
|
/// <summary>
|
|
/// Constructs a new PlayerPortalEvent with the given cause.
|
|
/// </summary>
|
|
/// <param name="player">The player entering the portal.</param>
|
|
/// <param name="from">The location the player is coming from.</param>
|
|
/// <param name="to">The location the player is teleporting to.</param>
|
|
/// <param name="cause">The cause of this teleportation (should be a portal-related cause).</param>
|
|
public PlayerPortalEvent(Player player, Location from, Location to, TeleportCause cause)
|
|
: base(player, from, to, cause) { }
|
|
}
|