Class CommandFeedback

java.lang.Object
org.reprogle.honeypot.common.commands.CommandFeedback

public class CommandFeedback extends Object
  • Method Details

    • sendCommandFeedback

      public static String sendCommandFeedback(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.
      Parameters:
      feedback - The string to send back
      success - An optional Boolean which is used for the success feedback. If none is passed, success just replies "Success!"
      Returns:
      The Feedback string
    • getChatPrefix

      public static String getChatPrefix()
      Return the chat prefix object from config
      Returns:
      The chat prefix, preformatted with color and other modifiers