Solved Commands.yml(location not sure)

Discussion in 'Plugin Help/Development/Requests' started by Scorpionvssub, May 30, 2015.

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

    Scorpionvssub

    I have an issue regarding /vote... i have playerlinks for /website /shop /facebook you name it. Now i recently replaced gallistner with a better more organized and more up to date listner also using /vote. But playerlinks is interfering with it and when i do /vote the playerlink plugin takes action first and i want voteroulette to be the first to retrieve me anything so playerlinks wont return anything. Some say priority now idk how that works, and i dont wanna disable playerlinks due to /website etc.

    Ive tried removing the Vote Url etc. part in playerlink but then when i do /vote it returns as always.. But without about 10 vote links...Any idea if commands.yml can override this and if so how? using voteroulette is a much cleaner /vote return then playerlink..

    Hope someone can help :)

    aliases:
    icanhasbukkit:
    - version $1-

    This is currently what it posseses

    vote:
    - voteroulette:vote $1-
    Tried this but with no luck

    http://dev.bukkit.org/bukkit-plugins/voteroulette/pages/commands/

    I can discard this whole issue by knowing 1 thing, what defines player in commands.yml <name>, <player> %player% or what...
     
    Last edited: May 30, 2015
  2. Offline

    SpeedPotion

  3. Offline

    pie_flavor

    @SpeedPotion Why? Commands.yml is already part of bukkit, so another plugin that does the same thing is useless.
    @Scorpionvssub So you're saying that this is your commands.yml?
    Code:
    aliases:
      vote:
      - VoteRoulette:vote $1-
     
  4. Offline

    Scorpionvssub

    aliases:
    icanhasbukkit:
    - version $1-
    vote:
    - voteroulette:vote $1-

    Also wanted to make it broadcast or say that <name> or something used the /vote command if able.
     
  5. Offline

    pie_flavor

    @Scorpionvssub All the indentation is removed, and it might be important.
    Please re-paste commands.yml, but wrap it in [code][/code] tags. Like so:
    [code]
    Code:
    aliases:
      icanhasbukkit:
      - version $1-
    [/code]
     
  6. Offline

    Scorpionvssub

    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: #spigot @ irc.spi.gt
    #    (If this means nothing to you, just go to http://irc.spi.gt/iris/?nick=&channels=spigot )
    # Forums: http://www.spigotmc.org/forums/help.40/
    # Bug tracker: http://www.spigotmc.org/forums/bugs-feature-requests.8/
    
    command-block-overrides: []
    aliases:
      icanhasbukkit:
      - version $1-
    vote:
      - voteroulette:vote $1-
    
    
    Also tried
    shop:
    - msg $$1 https:/**********************

    But that would require /shop <name>
     
  7. Offline

    pie_flavor

    @Scorpionvssub It thinks that you are making a compound tag because of the colon. Encase the command in single quotes.
     
  8. Offline

    Scorpionvssub

    - voteroulette:'vote' $1-?

    im just trying to make voteroulette plugin override all other /vote command plugins.
     
  9. Offline

    pie_flavor

  10. Offline

    Scorpionvssub

    i tried your way but it just ends up deleting the ' and no return from anything is being given. :confused:
     
  11. Offline

    Scorpionvssub

    bump

    Edit: isnt there otherwise a playerlink like plugin where i can just disable certain / commands or completely remove them so commands.yml and/or other commandsoverite plugins dont need to be used :confused:
     
  12. Offline

    pie_flavor

  13. Offline

    mrCookieSlime Retired Staff

    @pie_flavor I wouldnt if you didn't tag me :p

    @Scorpionvssub
    Using an alias like
    /vote for /voteroulette:vote is a bad choice here. You might create a Loop by that since /vote runs /vote which runs /vote etc...
    CommandOverride approaches this issue differently though.
    With CommandOverride you can simply create your own command which safely redirects to your desired command without any Plugin intereference.

    Simply define this in the config.yml

    /vote:
    - 'unsafe-command:/voteroulette:vote'

    as the Plugins name suggests, itll override that command to be only used this way.
    If you want, you can also make CommandOverride handle your /website /facebook etc... commands.

    /website:
    - 'Website link'

    Link is in my Signature.

    Blame pie_flavor for the fact that this in fact sounded like a TV commercial.
     
  14. Offline

    Scorpionvssub

    whatever works ill try as i do need it X) ill give that a go

    @mrCookieSlime
    /vote:
    - unsafe-command:/voteroulette:vote
    - '&6<player> &9used the /vote command.'

    Done that, all it does is Scorpionvssub used the /vote command.
    Never accually returns what voteroulette should return...

    <Edit by mrCookieSlime: Merged posts. Please don't double post. There is an Edit Button right next to the Date.>
     
    Last edited by a moderator: Jun 10, 2015
  15. Offline

    mrCookieSlime Retired Staff

    @Scorpionvssub
    Apparently /vote is only VoteRoulette's Alias.
    You need the Command as which /vote is registered in order for it to work.
    Use this instead:

    /vote:
    - 'unsafe-command:/voteroulette:votelinks'
    - '&6<player> &9used the /vote command.'
     
  16. Offline

    Scorpionvssub

  17. Offline

    mrCookieSlime Retired Staff

    @Scorpionvssub
    Are you sure?
    otherwise try
    unsafe-command:/votelinks
    It should most likely work without the plugin prefix anyway.
     
  18. Offline

    Scorpionvssub

    @mrCookieSlime im 100% that first 1 did not work, why would i lie....that last 1 indeed did work. Thanks! can now just keep playerlink active :)
     
  19. Offline

    mrCookieSlime Retired Staff

    @Scorpionvssub
    As I said, you could also just exchange PlayerLink for CommandOverride.
     
Thread Status:
Not open for further replies.

Share This Page