Can someone make me a really simple plugin?

Discussion in 'Archived: Plugin Requests' started by ric275, Jul 25, 2014.

  1. Offline

    ric275

    Hi! I'd like someone to make me a bukkit plugin (for mc 1.7.2) that kills a random player on the server when i type a command of my choice - so can you tell me how to change the command too? thanks.
     
  2. Offline

    ZanderMan9

    I can make this as soon as I get home. It'll be done in about 5 mins
     
  3. Offline

    ric275

    thank you!
     
  4. Offline

    ZanderMan9

  5. Offline

    ric275

  6. Offline

    timtower Moderator Moderator

    ric275 Commands.yml from bukkit or any command alias plugin.
     
  7. Offline

    ric275


    So if I wanted to change the /killrandom command to /lol for example, how would I do that using commands.yml?
     
  8. Offline

    timtower Moderator Moderator

    I have no idea to be honest. I just know that it can do that. But any command alias plugin will do the trick as well.
     
  9. Offline

    omon23

  10. Offline

    ric275

  11. Offline

    Necrodoom

    ric275 see example on page, "icanhasbukkit" replaced with "lol" and "version" with "killrandom"
     
  12. Offline

    ric275


    Still not working :/ This is what I got:

    Code:
    # This is the commands configuration file for Bukkit.
    # For documentation on how to make use of this file, check out the Bukkit Wiki at
    # http://wiki.bukkit.org/Commands.yml
    #
    # If you need help on this file, feel free to join us on irc or leave a message
    # on the forums asking for advice.
    #
    # IRC: #bukkit @ esper.net
    #    (If this means nothing to you, just go to http://webchat.esper.net/?channels=bukkit )
    # Forums: http://forums.bukkit.org/forums/bukkit-help.6/
    # Twitter: http://twitter.com/CraftBukkit
    # Bug tracker: http://leaky.bukkit.org/
     
    command-block-overrides: []
    aliases:
      icanhasbukkit:
      - version $1-
      lol:
      - “killrandom”
    
     
  13. Offline

    Necrodoom

    ric275 read the wiki page. The $1- is there for a reason.
     
  14. Offline

    ric275


    I really don't understand, please can you explain
     
  15. Offline

    ZanderMan9

    Necrodoom Um... what? There are no args for my command :)
    ric275 Try this...
    Code:
    aliases:
      icanhasbukkit:
      - version $1-
      lol:
      - killrandom
    Also, make sure you've restarted the server afterward :)
     
  16. Offline

    omon23


    That will not work. The $1 needs to be there even if the command has no arugemnts whatsoever, plus, you forgot the dash (-) at the end.

    This should do the trick:

    Code:
    aliases:
      icanhasbukkit:
      - version $1-
      lol:
      - killrandom $1-
    Make sure to restart the server afterwards.
     
  17. Offline

    ric275

    nope didn't work
     
  18. Offline

    xxmarijnw

    ric275 Put the command between "
    Example:
    Lol:
    - "killrandom $1-"
     
  19. Offline

    ric275


    you sure? do you mean "- killrandom $1-" or - "killrandom" $1-?
     
    xxmarijnw likes this.
  20. Offline

    xxmarijnw

    - "killrandom $1-"
     
  21. Offline

    ric275

    nope :(
     
  22. Offline

    timtower Moderator Moderator

    ric275 Any command alias plugin.
     
  23. Offline

    omon23

    Yes you could use a Command Alias plugin, but if you don't want to then try this:
    Code:
    aliases:
        lol:
        - "killrandom $1-"
    I forgot to put the quotes in my previous post, so that's probably why it didn't work.
     
  24. Offline

    imamdeveloper

    have the guy change the cmd
     
  25. Offline

    ric275


    Makes sense, but I will need to be changing it regularly so it's out of the question :(
     
  26. Offline

    timtower Moderator Moderator

    ric275 If you click the link in my signature you will see a list of plugins. Check DynamicAliases.
    Will do everything you need it to do.
     

Share This Page