Interface IBaritoneChatControl


public interface IBaritoneChatControl
Since:
9/26/2019
Author:
Brady
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    In certain cases chat components need to execute commands for you.
  • Field Details

    • FORCE_COMMAND_PREFIX

      In certain cases chat components need to execute commands for you. For example, the paginator automatically runs commands when you click the forward and back arrows to show you the previous/next page.

      If the prefix is changed in the meantime, then the command will go to chat. That's no good. So here's a permanent prefix that forces a command to run, regardless of the current prefix, chat/prefix control being enabled, etc.

      If used right (by both developers and users), it should be impossible to expose a command accidentally to the server. As a rule of thumb, if you have a clickable chat component, always use this prefix. If you're suggesting a command (a component that puts text into your text box, or something else), use Settings.prefix.