Package org.reprogle.honeypot.commands
Class CommandFeedback
java.lang.Object
org.reprogle.honeypot.commands.CommandFeedback
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn the chat prefix object from configstatic StringsendCommandFeedback(String feedback, Boolean... success) A helper class which helps to reduce boilerplate player.sendMessage code by providing the strings to send instead of having to copy and paste them.
-
Method Details
-
sendCommandFeedback
A helper class which helps to reduce boilerplate player.sendMessage code by providing the strings to send instead of having to copy and paste them.- Parameters:
feedback- The string to send backsuccess- An optional Boolean which is used for the success feedback. If none is passed, success just replies "Success!"- Returns:
- The Feedback string
-
getChatPrefix
Return the chat prefix object from config- Returns:
- The chat prefix, preformatted with color and other modifiers
-