Class HelloResponse

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      HelloResponse()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      List<String> getTriggers() A list of strings that trigger this response.
      Boolean isFullMessage() Require the player's full message to match one of the registered phrases.
      Integer getDelay(ServerLevel level, ServerPlayer sender) If you need more custom logic for delay times than a constant, override this.
      Unit respond(ServerLevel level, ServerPlayer sender) Called when the chat response is triggered.
      • Methods inherited from class dev.wendigodrip.thebrokenscript.api.responses.ChatResponse

        afterTicks, check, execute, getCaseSensitive, getDelay, getLevel, getSender, playGlobalSound, playGlobalSound, playSound, playSound, setLevel, setSender
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HelloResponse

        HelloResponse()
    • Method Detail

      • isFullMessage

         Boolean isFullMessage()

        Require the player's full message to match one of the registered phrases.

      • getDelay

         Integer getDelay(ServerLevel level, ServerPlayer sender)

        If you need more custom logic for delay times than a constant, override this.

      • respond

         Unit respond(ServerLevel level, ServerPlayer sender)

        Called when the chat response is triggered.