My suggestions to the plugin #3


  • New
  • Enhancment
Open
Assigned to _ForgeUser7181231
  • _ForgeUser10179593 created this issue Jan 13, 2016

    i think that will be great if the plugin allows to create diferent functions and responses in the config file and execute them in minecraft at each situation, per example:

    config.yml -->

    function1:
         # Custom amount of parameters would be a great option!
         - parameters: 3  #
         - URL: http://localhost/url1?%parameter1%=%value1%&%parameter2%=%value2%&%parameter3%=%value3%
         - verifyingMessage: 'Looking for an answer...'
         - success: 'Thanks for verifying'
         - incorrect: 'Sorry but the answer was incorrect!'
         - error: 'Something went wrong :s'
         #maybe a custom case specified in the php?
         - customCase1: 'Custom message here!'
         - commands:
                - success:
                   - 'give %user% cookie 1'
                    # - comand2
                - incorrect:
                   # - command
                - error:
                   # - command

    --------------------------------------------------------------------------

    and use them like:
    "/executePHP function1 <parameter1>:<value1> <parameter2>:<value2> <parameter3>:<value3>"

    I know this is just an idea and codify this is hard enough but make the plugin like this would be really great.

    You can also simplify by letting the php script specify the responses in a json like:

    {"message": "Lorem ipsum dolor sit amet.","commands":{"1":"say Hello World!","2":"say This is Great!"}}

    hope you can do this to the 1.7 version

  • _ForgeUser10179593 added the tags New Enhancment Jan 13, 2016

To post a comment, please login or register a new account.