Custom Commands/Shortcuts

Discussion in 'Archived: Plugin Requests' started by TheMysterious, Feb 20, 2014.

  1. Offline

    TheMysterious

    I got this idea from this plugin: http://dev.bukkit.org/bukkit-plugins/cshortcut/
    So it's not my own idea...

    But I talked to the owner of this plugin and he doesn't work on it anymore, this plugin contains some annoying bugs and there are lots of features that could be added to it. I can't find any plugin alike, and it would be sad if this idea would die.

    So, the idea is that you can create custom commands in a config.yml.

    Features:

    NOTE: These features contain features from cshortcut and my own ideas/fixes

    - Multiple commands combined in 1 custom command

    - Custom command that doesn't run an existing command (just displays text or whatever you want)

    - Send formatted messages to the player

    - Broadcast formatted messages server wide or per world

    - Delayed commands

    - Underscores to be recognized as spaces in the commands in the config

    - Option to run the existing command that you added to the custom command, through the console or as another player.

    - Option to enable/disable the command to be run as the player, in command blocks or as the console.

    - Custom commands that match existing commands will overwrite the existing commands

    - Custom bad syntax/no permission/success message

    - First argument, second argument, etc... to be recognized in the config as %<number> (like in cshortcut)

    - All given arguments to be recognized in the config as %0 (like in cshortcut)

    - Randomized commands/messages

    - Randomized color support

    - Aliases per command

    - A %player, %displayname, %x, %y, %z, %world, and custom %<word>'s created by you in a variables.yml

    - Anything you come up with!

    - All of these features to be optional

    I'd really appreciate it if this could be done and I think most people will. Because this would allow so much customization to your server without java knowledge.

    Thanks,

    -TheMysterious

    EDIT:
    Example config:
    Code:
    # Config blah blah, made by blah blah
     
    commands:
      /my_command: # example command to be run as /my command <arguments>
        actions:
        - 'cmd: /say example' # example command
        - 'brc: &5[Server] example 2' # example broadcast
        - 'msg: &aYou just sent 2 example messages!' # example message
        - 'delay=120: msg: &aDo you remember the command you sent 2 minutes ago?'
        player: true
        console: true
        cmdblock: false # this command cannot be sent through command blocks
        permission: 'my.command.example'
        permission-msg: '&cYou dont have permission to use this command!'
        syntax-msg: '&cUsage: /my command <arguments...>'
        success-msg: '&aSuccess!' # To disable just remove this line
      /gm:
        actions:
        - 'cmd: /gamemode %1 %2'
        permission: 'custom.gamemode.shortcut'
        syntax-msg: '&cUsage: /gm <mode> [player]'
      /plugins # Prevent your players from spying your plugins!
        alias:
        - /pl
        actions:
        - 'msg: Unknown command. Type "/help" for help'
     
  2. Offline

    Desle

  3. Offline

    TheMysterious

    An example config would look like this

    It's not really the same, you see, much more features can be added with ease but no-one does that...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  4. Offline

    timtower Administrator Administrator Moderator

  5. Offline

    Desle

    TheMysterious
    All things in the configuration file you gave as example is possible with rTriggers.
     
  6. Offline

    Alshain01

    FYI, Bukkit may be doing what you want now. I'm not certain it's exactly what you specified but they implemented a new aliasing system that gives you a lot of power now.

    Details here
     
  7. Offline

    TheMysterious

    Thanks for all your help!

    So.. if I got it right:

    These features will be added to CB:
    - Multiple commands combined in 1 custom command

    - Custom command that doesn't run an existing command (just displays text or whatever you want)

    These features are supported by cShortcut (run by player only):
    - Send formatted messages to the player

    - Broadcast formatted messages server wide or per world

    - Delayed commands

    - Custom commands that match existing commands will overwrite the existing commands

    - A %player, and %displayname

    - First argument, second argument, etc... to be recognized in the config as %<number>

    These features I'm still looking for:
    - cShortcut features available through command blocks/console

    - Underscores to be recognized as spaces in the commands in the config

    - Option to run the existing command that you added to the custom command, through the console or as another player.

    - Option to enable/disable the command to be run as the player, in command blocks or as the console.

    - Custom bad syntax/no permission/success message

    - Remove broadcasts/messages from existing commands (not sure if possible)

    - All given arguments to be recognized in the config as %0

    - A %x, %y, %z, %world, and custom %<word>'s created by you in a variables.yml

    These features aren't as important as others:
    - Randomized commands/messages

    - Randomized color support

    - Aliases per command (could just copy + paste and rename the command)


    Some features I'm still looking for are supported by plugins you mentioned like rtriggers and variable triggers. But these seem quite complicated to me. To be clear, I have 0 understanding of java. I watched one of the tutorial videos and they already start off with things like blah blah <blah> that I don't understand!

    A config like in my example would be easy to use and easy to remember. And I know it's possible to make something like that...

    What do you mean by "Script"?

    http://dev.bukkit.org/bukkit-plugins/script/ doesn't exist.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  8. Offline

    timtower Administrator Administrator Moderator

  9. Offline

    TheMysterious

    Ok, thanks, I'll have a look
     
  10. Offline

    Me4502

    I would recommend CommandHelper the most out of those, it's incredibly powerful.
     
  11. Offline

    TheMysterious

    Thanks, I'll try it out
     
  12. Offline

    MRI

  13. Offline

    TheMysterious

Share This Page