Class FancyClickEvent


  • public abstract class FancyClickEvent
    extends java.lang.Object
    A FancyMessage's ClickEvent
    • Constructor Summary

      Constructors 
      Constructor Description
      FancyClickEvent()
      Default Constructor By default will self delete after 5 minutes from first message.
      FancyClickEvent​(boolean removeAfter5Min)
      Constructor to remove the "removeAfter5Min"
    • Method Summary

      Modifier and Type Method Description
      org.bukkit.entity.Player getPlayer()  
      java.util.UUID getUUID()  
      abstract void onClick()
      Abstract CallBack
      void setPlayer​(org.bukkit.entity.Player player)
      Set the player
      void startRemoval()
      Remove the Event
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FancyClickEvent

        public FancyClickEvent()
        Default Constructor By default will self delete after 5 minutes from first message. Resets if clicked again within the time
      • FancyClickEvent

        public FancyClickEvent​(boolean removeAfter5Min)
        Constructor to remove the "removeAfter5Min"
        Parameters:
        removeAfter5Min - If the FancyClick is auto removed after 5 minutes
    • Method Detail

      • getPlayer

        public org.bukkit.entity.Player getPlayer()
        Returns:
        Get the Player
      • setPlayer

        public void setPlayer​(org.bukkit.entity.Player player)
        Set the player
        Parameters:
        player - The Player
      • getUUID

        public java.util.UUID getUUID()
        Returns:
        Get the UUID
      • onClick

        public abstract void onClick()
        Abstract CallBack
      • startRemoval

        public void startRemoval()
        Remove the Event