Class PlayerSignals
java.lang.Object
me.tamkungz.signals.bukkit.event.PlayerSignals
Shortcuts for common Bukkit player events, reached with
BukkitSignals#players().
Each method is the same as EventSignalSource.on(Class) for the named event class;
anything not listed here is still available through that method.
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerSignals(EventSignalSource source) Creates the shortcuts; preferBukkitSignals#players(). -
Method Summary
Modifier and TypeMethodDescriptionEventSignalBuilder<org.bukkit.event.player.PlayerCommandPreprocessEvent> command()Listens toPlayerCommandPreprocessEvent.EventSignalBuilder<org.bukkit.event.entity.PlayerDeathEvent> death()Listens toPlayerDeathEvent.EventSignalBuilder<org.bukkit.event.player.PlayerInteractEvent> interact()Listens toPlayerInteractEvent.EventSignalBuilder<org.bukkit.event.player.PlayerJoinEvent> join()Listens toPlayerJoinEvent.EventSignalBuilder<org.bukkit.event.player.PlayerKickEvent> kick()Listens toPlayerKickEvent.EventSignalBuilder<org.bukkit.event.player.PlayerMoveEvent> move()Listens toPlayerMoveEvent.EventSignalBuilder<org.bukkit.event.player.PlayerQuitEvent> quit()Listens toPlayerQuitEvent.EventSignalBuilder<org.bukkit.event.player.PlayerRespawnEvent> respawn()Listens toPlayerRespawnEvent.EventSignalBuilder<org.bukkit.event.player.PlayerTeleportEvent> teleport()Listens toPlayerTeleportEvent.
-
Constructor Details
-
PlayerSignals
Creates the shortcuts; preferBukkitSignals#players().- Parameters:
source- where the signals come from
-
-
Method Details
-
join
Listens toPlayerJoinEvent.- Returns:
- a builder for priority and cancellation options
-
quit
Listens toPlayerQuitEvent.- Returns:
- a builder for priority and cancellation options
-
kick
Listens toPlayerKickEvent.- Returns:
- a builder for priority and cancellation options
-
move
Listens toPlayerMoveEvent.- Returns:
- a builder for priority and cancellation options
-
teleport
Listens toPlayerTeleportEvent.- Returns:
- a builder for priority and cancellation options
-
interact
Listens toPlayerInteractEvent.- Returns:
- a builder for priority and cancellation options
-
death
Listens toPlayerDeathEvent.- Returns:
- a builder for priority and cancellation options
-
respawn
Listens toPlayerRespawnEvent.- Returns:
- a builder for priority and cancellation options
-
command
Listens toPlayerCommandPreprocessEvent.- Returns:
- a builder for priority and cancellation options
-