MinecraftConsoles/Minecraft.Server.FourKit/Event/Player/PlayerEvent.cs
sylvessa f5f9aa1cf5 finish rewrite; port to cmake, loads of other changes
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
2026-03-21 14:01:49 -05:00

20 lines
473 B
C#

namespace Minecraft.Server.FourKit.Event.Player;
using Minecraft.Server.FourKit.Entity;
/// <summary>
/// Base class for events related to a <see cref="FourKit.Player"/>.
/// </summary>
public abstract class PlayerEvent : Event
{
private readonly Player _player;
internal protected PlayerEvent(Player player)
{
_player = player;
}
/// <summary>Returns the player involved in this event.</summary>
public Player getPlayer() => _player;
}