Class VoidResponse

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      VoidResponse()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Integer getDelay() The delay in ticks before calling the respond() function.
      Boolean isFullMessage() Require the player's full message to match one of the registered phrases.
      List<String> getTriggers() A list of strings that trigger this response.
      Unit respond(Level level, Player sender) Called when the chat response is triggered.
      • Methods inherited from class dev.wendigodrip.thebrokenscript.api.responses.ChatResponse

        broadcast, check, condition, doWork, execute, getCaseSensitive, getLevel, getSender, onServer, 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

      • VoidResponse

        VoidResponse()
    • Method Detail

      • getDelay

         Integer getDelay()

        The delay in ticks before calling the respond() function.

      • isFullMessage

         Boolean isFullMessage()

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

      • respond

         Unit respond(Level level, Player sender)

        Called when the chat response is triggered.