Can someone make me a really simple plugin?

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

  1. 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. thank you!
     
  4. Offline

    ZanderMan9

  5. Offline

    timtower Administrator Administrator Moderator

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

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

    timtower Administrator Administrator 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.
     
  8. Offline

    omon23

  9. Offline

    Necrodoom

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

  10. 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”
    
     
  11. Offline

    Necrodoom

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

  12. I really don't understand, please can you explain
     
  13. 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 :)
     
  14. 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.
     
  15. nope didn't work
     
  16. Offline

    xxmarijnw

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

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

    xxmarijnw

    - "killrandom $1-"
     
  19. nope :(
     
  20. Offline

    timtower Administrator Administrator Moderator

    ric275 Any command alias plugin.
     
  21. 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.
     
  22. Offline

    imamdeveloper

    have the guy change the cmd
     

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

    timtower Administrator Administrator 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