Java API
class

PlayerSignals

me.tamkungz.signals.bukkit.event.PlayerSignals

Version
0.2.0-SNAPSHOT
Java
21
Source file
me/tamkungz/signals/bukkit/event/PlayerSignals.java
Repository
View source ↗

Shortcuts for common Bukkit player events, reached with {@code BukkitSignals#players()}.

<p>

Each method is the same as {@link EventSignalSource#on(Class)} for the named event class;

anything not listed here is still available through that method.

public final class PlayerSignals

Constructors 1

PlayerSignals

public PlayerSignals(EventSignalSource source)

Creates the shortcuts; prefer {@code BukkitSignals#players()}.

@param
source where the signals come from

Methods 9

join

public EventSignalBuilder<PlayerJoinEvent> join()

Listens to {@link PlayerJoinEvent}.

@return
a builder for priority and cancellation options

quit

public EventSignalBuilder<PlayerQuitEvent> quit()

Listens to {@link PlayerQuitEvent}.

@return
a builder for priority and cancellation options

kick

public EventSignalBuilder<PlayerKickEvent> kick()

Listens to {@link PlayerKickEvent}.

@return
a builder for priority and cancellation options

move

public EventSignalBuilder<PlayerMoveEvent> move()

Listens to {@link PlayerMoveEvent}.

@return
a builder for priority and cancellation options

teleport

public EventSignalBuilder<PlayerTeleportEvent> teleport()

Listens to {@link PlayerTeleportEvent}.

@return
a builder for priority and cancellation options

interact

public EventSignalBuilder<PlayerInteractEvent> interact()

Listens to {@link PlayerInteractEvent}.

@return
a builder for priority and cancellation options

death

public EventSignalBuilder<PlayerDeathEvent> death()

Listens to {@link PlayerDeathEvent}.

@return
a builder for priority and cancellation options

respawn

public EventSignalBuilder<PlayerRespawnEvent> respawn()

Listens to {@link PlayerRespawnEvent}.

@return
a builder for priority and cancellation options

command

public EventSignalBuilder<PlayerCommandPreprocessEvent> command()

Listens to {@link PlayerCommandPreprocessEvent}.

@return
a builder for priority and cancellation options