Interface EventFactory
public interface EventFactory
An event factory.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and fires a (un)ban event.voidCreates and fires a kick event.voidCreates and fires a mute event.voidCreates and fires a warn event.
-
Method Details
-
kick
Creates and fires a kick event.- Parameters:
player- the player that will be kickeduuid- theUUIDof 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- theUUIDof (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- theUUIDof (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- theUUIDof warned playerwarner- the sender who warned the player
-