Interface EventFactory


public interface EventFactory
An event factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    authed(IPlayer player, UUID uuid)
    Creates and fires an authenticated event.
    void
    ban(@Nullable IPlayer player, UUID uuid, ISender banner, boolean nowBanned)
    Creates and fires a (un)ban event.
    void
    kick(IPlayer player, UUID uuid, ISender kicker)
    Creates and fires a kick event.
    void
    loginRemind(IPlayer player, UUID uuid)
    Creates and fires a login remind event.
    void
    mute(@Nullable IPlayer player, UUID uuid, ISender muter, boolean nowMuted)
    Creates and fires a mute event.
    void
    warn(@Nullable IPlayer player, UUID uuid, ISender warner)
    Creates and fires a warn event.
  • Method Details

    • kick

      void kick(IPlayer player, UUID uuid, ISender kicker)
      Creates and fires a kick event.
      Parameters:
      player - the player that will be kicked
      uuid - the UUID of kicked player
      kicker - the sender who kicked the player
    • ban

      void ban(@Nullable IPlayer player, UUID uuid, ISender banner, boolean nowBanned)
      Creates and fires a (un)ban event.
      Parameters:
      player - the player that will be (un)banned; may be null
      uuid - the UUID of (un)banned player
      banner - the sender who (un)banned the player
      nowBanned - whether the player is now banned
    • mute

      void mute(@Nullable IPlayer player, UUID uuid, ISender muter, boolean nowMuted)
      Creates and fires a mute event.
      Parameters:
      player - the player that will be (un)muted; may be null
      uuid - the UUID of (un)muted player
      muter - the sender who muted the player
      nowMuted - whether the player is now muted
    • warn

      void warn(@Nullable IPlayer player, UUID uuid, ISender warner)
      Creates and fires a warn event.
      Parameters:
      player - the player that will be warned; may be null
      uuid - the UUID of warned player
      warner - the sender who warned the player
    • loginRemind

      void loginRemind(IPlayer player, UUID uuid)
      Creates and fires a login remind event.
      Parameters:
      player - the player that will be reminded
      uuid - the UUID of player
    • authed

      void authed(IPlayer player, UUID uuid)
      Creates and fires an authenticated event.
      Parameters:
      player - the player that authenticated themselves
      uuid - the UUID of player