-
-
Constructor Summary
Constructors
-
Method Summary
void
protected void
Applies custom placeholders to the message
abstract net.kyori.adventure.text.Component
Builds the message as a component
Adds the error color to the message
Adds the primary color to the message
Replaces a placeholder in the message
Adds the secondary color to the message
void
send(org.bukkit.command.CommandSender receiver)
Adds the success color to the message
Adds the warning color to the message
Adds the prefix to the message
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
Method Details
-
applyColorPlaceholders
protected void applyColorPlaceholders()
-
replace
Replaces a placeholder in the message
- Parameters:
placeholder - the placeholder to replace
replacement - the replacement
- Returns:
- this message
-
withPrefix
public abstract Message withPrefix()
Adds the prefix to the message
- Returns:
- this message
-
primary
Adds the primary color to the message
- Returns:
- this message
-
secondary
public abstract Message secondary()
Adds the secondary color to the message
- Returns:
- this message
-
success
Adds the success color to the message
- Returns:
- this message
-
warning
Adds the warning color to the message
- Returns:
- this message
-
error
Adds the error color to the message
- Returns:
- this message
-
applyCustomPlaceholders
public abstract Message applyCustomPlaceholders()
Applies custom placeholders to the message
- Returns:
- this message
-
buildComponent
public abstract net.kyori.adventure.text.Component buildComponent()
Builds the message as a component
- Returns:
- the built component
-
copy
Copies the message
- Returns:
- the copied message
-
send
public void send(org.bukkit.command.CommandSender receiver)
-
actionbar
public void actionbar(org.bukkit.entity.Player receiver)