Class BarMessage
java.lang.Object
ml.karmaconfigs.api.bukkit.reflection.BarMessage
Action bar message
-
Constructor Summary
ConstructorsConstructorDescriptionBarMessage(org.bukkit.entity.Player p, @Nullable String m)Initialize the ActionBar class -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSent()Check if the bar has been sentvoidsend(boolean persistent)Send the message until you tell it to stopvoidsend(int repeats)Send the message the specified amount of timesvoidsetMessage(String _message)Update the actionbar messagevoidstop()Stop sending the action bar
-
Constructor Details
-
BarMessage
Initialize the ActionBar class- Parameters:
p- the playerm- 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
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
-