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 voidaddHook(PlayerChatHookData newHook)Adds a player chat hookvoidonPlayerChat(org.bukkit.event.player.AsyncPlayerChatEvent event)Called when a player sends a message in chatvoidrun()Ticked every second to decrease the seconds remaining on each hookstatic voidsetup()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:
runin interfacejava.lang.Runnable
-
addHook
Adds a player chat hook- Parameters:
newHook- The new hook to add
-