Filled AutoCommand / ChatCommands

Discussion in 'Plugin Requests' started by SimplyBrandon1, Jul 28, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    SimplyBrandon1

    Plugin category: Chat / Commands

    Minecraft version: 1.8-1.9

    Suggested name: AutoCommand or ChatCommands

    What I want: I would like a plugin that listens to chat. When it detects a key phrase that is set in the config, the console issues a custom command which is also set in the config. An example, simple config would be:

    Code:
    Phrase:
    'ET go home'
    Commands to issue:
    - /home {Player}
    Required permission:
    ac.home
    
    Ideas for commands:
    /
    ac reload (/autocommand reload)
    /cc reload (ChatCommands reload)

    Ideas for permissions: Custom permissions set for each phrase.

    When I'd like it by: ASAP

    ~ Thanks.
     
    Last edited: Jul 28, 2016
  2. Offline

    htmlman1

  3. Offline

    Firestar311

    You are not going to get a developer with this line. It shows you are impatient and plugin developers do this in their spare time. Please be more reasonable
     
  4. Offline

    SimplyBrandon1

    That is the default. I just didn't change it. I didn't mean it in an unreasonable way. Also, thanks @htmlman1
     
  5. Offline

    htmlman1

  6. Offline

    I Al Istannen

    @htmlman1
    May want to remove the debug output? ;)
    Here are some examples. If you use eclipse, I would press Ctrl+Shift+F in IntelliJ and search for "System.out".
    In eclipse press Ctrl+H and use the arrows in the top right to navigate to the "File Search" tab. Search there for the same. Sorry if you already knew the shortcuts, you never know ;)
    "System.out.println("Fired");"
    "System.out.println(command.getKeyPhrase());"

    But looks nice otherwise and I like the Mary Poppins reference ;)

    Do you actually need the quotes in the config for the phrase? Just curious. :)

    Have a nice day!
     
  7. Offline

    htmlman1

    Ah, nice catch! Forgot to remove them this time as I was in a bit of a rush when I made the plugin, haha. (Glad to see at least one person appreciated the Mary Poppins reference, haha!)

    Also, the quotes serve as insurance. They're just there to make sure that the YAML parser treats the string as a key of its own, with no special characters interfering.
     
    I Al Istannen likes this.
  8. Offline

    SimplyBrandon1

    @htmlman1 thanks so much! I will check it out in a second. :)
     
  9. Offline

    htmlman1

Thread Status:
Not open for further replies.

Share This Page