Class BarMessage

java.lang.Object
ml.karmaconfigs.api.bukkit.reflection.BarMessage

public final class BarMessage extends Object
Action bar message
  • Constructor Summary

    Constructors
    Constructor
    Description
    BarMessage​(org.bukkit.entity.Player p, @Nullable String m)
    Initialize the ActionBar class
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the bar has been sent
    void
    send​(boolean persistent)
    Send the message until you tell it to stop
    void
    send​(int repeats)
    Send the message the specified amount of times
    void
    setMessage​(String _message)
    Update the actionbar message
    void
    Stop sending the action bar

    Methods inherited from class java.lang.Object

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

    • BarMessage

      public BarMessage(org.bukkit.entity.Player p, @Nullable @Nullable String m)
      Initialize the ActionBar class
      Parameters:
      p - the player
      m - the message
  • Method Details

    • send

      public void send(boolean persistent)
      Send the message until you tell it to stop
      Parameters:
      persistent - if the message should be persistent until you order stopping
    • send

      public void send(int repeats)
      Send the message the specified amount of times
      Parameters:
      repeats - the amount of times to send it
    • setMessage

      public void setMessage(String _message)
      Update the actionbar message
      Parameters:
      _message - the new message
    • stop

      public void stop()
      Stop sending the action bar
    • isSent

      public boolean isSent()
      Check if the bar has been sent
      Returns:
      if the bar has been sent