public class SimpleMessage
extends Message
-
-
Constructor Summary
Constructors
-
Method Summary
void
Applies custom placeholders to the message
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
Replaces a placeholder in the message, all known tags are stripped from the replacement
Adds the secondary color to the message
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
-
replace
Description copied from class: Message
Replaces a placeholder in the message
- Specified by:
replace in class Message
- Parameters:
placeholder - the placeholder to replace
replacement - the replacement
- Returns:
- this message
-
replaceStripped
Description copied from class: Message
Replaces a placeholder in the message, all known tags are stripped from the replacement
- Specified by:
replaceStripped in class Message
- Parameters:
placeholder - the placeholder to replace
replacement - the replacement
- Returns:
- this message
-
withPrefix
Description copied from class: Message
Adds the prefix to the message
- Specified by:
withPrefix in class Message
- Returns:
- this message
-
primary
Description copied from class: Message
Adds the primary color to the message
- Specified by:
primary in class Message
- Returns:
- this message
-
secondary
Description copied from class: Message
Adds the secondary color to the message
- Specified by:
secondary in class Message
- Returns:
- this message
-
success
Description copied from class: Message
Adds the success color to the message
- Specified by:
success in class Message
- Returns:
- this message
-
warning
Description copied from class: Message
Adds the warning color to the message
- Specified by:
warning in class Message
- Returns:
- this message
-
error
Description copied from class: Message
Adds the error color to the message
- Specified by:
error in class Message
- Returns:
- this message
-
-
buildComponent
public net.kyori.adventure.text.Component buildComponent()
Description copied from class: Message
Builds the message as a component
- Specified by:
buildComponent in class Message
- Returns:
- the built component
-
copy
Description copied from class: Message
Copies the message
- Specified by:
copy in class Message
- Returns:
- the copied message
-
-
actionbar
public void actionbar(org.bukkit.entity.Player receiver)
- Overrides:
actionbar in class Message
-