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 hook
    void onPlayerChat​(org.bukkit.event.player.AsyncPlayerChatEvent event)
    Called when a player sends a message in chat
    void run()
    Ticked every second to decrease the seconds remaining on each hook
    static void setup()
    Initializes all the static values for this class

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 interface java.lang.Runnable
    • addHook

      public static void addHook​(PlayerChatHookData newHook)
      Adds a player chat hook
      Parameters:
      newHook - The new hook to add