Class PlayerChatHook
java.lang.Object
org.bukkit.scheduler.BukkitRunnable
dev.esophose.playerparticles.gui.hook.PlayerChatHook
- All Implemented Interfaces:
java.lang.Runnable
,org.bukkit.event.Listener
public class PlayerChatHook
extends org.bukkit.scheduler.BukkitRunnable
implements org.bukkit.event.Listener
-
Constructor Summary
Constructors Constructor Description PlayerChatHook()
-
Method Summary
Modifier and Type Method Description static void
addHook(PlayerChatHookData newHook)
Adds a player chat hookvoid
onPlayerChat(org.bukkit.event.player.AsyncPlayerChatEvent event)
Called when a player sends a message in chatvoid
run()
Ticked every second to decrease the seconds remaining on each hookstatic void
setup()
Initializes all the static values for this class
-
Constructor Details
-
PlayerChatHook
public PlayerChatHook()
-
-
Method Details
-
setup
public static void setup()Initializes all the static values for this class -
onPlayerChat
public void onPlayerChat(org.bukkit.event.player.AsyncPlayerChatEvent event)Called when a player sends a message in chat- Parameters:
event
- The AsyncPlayerChatEvent
-
run
public void run()Ticked every second to decrease the seconds remaining on each hook- Specified by:
run
in interfacejava.lang.Runnable
-
addHook
Adds a player chat hook- Parameters:
newHook
- The new hook to add
-