Interface EventFactory
public interface EventFactory
An event factory.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates and fires an authenticated event.void
Creates and fires a (un)ban event.void
Creates and fires a kick event.void
loginRemind
(IPlayer player, UUID uuid) Creates and fires a login remind event.void
Creates and fires a mute event.void
Creates and fires a warn event.
-
Method Details
-
kick
Creates and fires a kick event.- Parameters:
player
- the player that will be kickeduuid
- theUUID
of kicked playerkicker
- the sender who kicked the player
-
ban
Creates and fires a (un)ban event.- Parameters:
player
- the player that will be (un)banned; may be nulluuid
- theUUID
of (un)banned playerbanner
- the sender who (un)banned the playernowBanned
- whether the player is now banned
-
mute
Creates and fires a mute event.- Parameters:
player
- the player that will be (un)muted; may be nulluuid
- theUUID
of (un)muted playermuter
- the sender who muted the playernowMuted
- whether the player is now muted
-
warn
Creates and fires a warn event.- Parameters:
player
- the player that will be warned; may be nulluuid
- theUUID
of warned playerwarner
- the sender who warned the player
-
loginRemind
Creates and fires a login remind event.- Parameters:
player
- the player that will be remindeduuid
- theUUID
of player
-
authed
Creates and fires an authenticated event.- Parameters:
player
- the player that authenticated themselvesuuid
- theUUID
of player
-