mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-26 00:46:46 +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
20 lines
473 B
C#
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;
|
|
}
|