Solved Aliases? Basic setup help.

Discussion in 'Bukkit Help' started by Winterfellhard, Oct 11, 2014.

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

    Winterfellhard

    I am currently operating a private server which will soon go public. I have recently added a few new plugins to accomodate for this change. I have had essentials for a good bit so most of the essentials permissions are setup how I like them. I added jcommands today to come to realize that many of the commands are now being by this plugin (which no one has permissions for, currently everyone has to type /ehome or /ehelp ect.

    Is there a way to make it so for a few permissions say /home /afk /back /boom /spawn /home /sethome /delhome /god /freeze /tp /invisble (just a few to name the least, I dont want to delete Jcommands as it has a few EPIC commands such as /put /admins /moderators there are more but shouldn't have to explain my reasons. I tried to find the help for this and all I could find was:

    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-
    
    Basic Code I found that does not seem to work whats wrong with the format? Do not get an error in startup it just doesnt set the aliases correctly. Any Ideas?

    Code:
    command-block-overrides: []
    aliases:
      icanhavehelp:
      - help
      version:
      - ehelp
      icanhaveafk:
      - "afk"
      version:
      - "eafk"


    If someone could help me out with one or 2 of the alaises for this it would be tremendous!
    Most important ones to me right now are /afk /home /spawn /warp
     
  2. Offline

    JWhy

    I'd remove the quotes (you'd rather use single quotes in YAML anyways), but the format is correct.
    Code:
    aliases:
      afk:
      - eafk
      warp:
      - ewarp
    # ...
    you may also try to put e.g. essentials:warp or essentials:home instead of ewarp and ehome.
     
  3. Offline

    Winterfellhard



    So this will make the command afk run eafk? or this will make eafk run afk?

    Just a matter of formating but this one does not make sense to me. Why is there not a plugin for this?
     
  4. Offline

    JWhy

    Code:
    aliases:
      what-you-type:
      - what-it-does
      the-alias:
      - the-actual-command
    It's defined as a list to allow the specification of multiple commands connected to an alias, so you can have macros.

    Code:
    aliases:
      shutdown:
      - save-all
      - kickall
      - stop
    In my opinion the alias system does what it promises. However if you need more customization (beyond remapping command names) you may want to use e.g. CommandHelper (which allows scripting!)
     
    JaguarJo and Winterfellhard like this.
  5. Offline

    Winterfellhard

    Sweet!! Thanks!! Ok I am starting to understand this should get me to where I need to be to setup future ones. Only other question because jcommands actually has /afk /jc_afk and essentials has /eafk or /essentials:afk isnt there fudamentally an arguement between the 2 plugins?

    For example: If I remove jcommands from my plugin and type /afk (part of my essentials will god mode you, freeze you, and only allow unafk via typing the commands. When jcommands is in the plugins /afk results in you do not have permissions (because it is defaulting to jcommands). If an op runs this it will afk the player but will not give them the extra features I had setup via essentials.

    Sample Codes my ideas to remove this:
    #1

    Code:
    aliases:
      afk:
      - essentials:afk
      jafk:
      - jc_afk
      jafk:
      - []
    #2

    Code:
    aliases:
      away:
      - essentials:afk
      afk:
      - []
    
    Code 1: Basically I want to keep the command as afk at all costs. This code doesnt seem to function how I want. I want /afk to run only essentials but /afk defaults to jcommands. How to avoid this?

    Code 2: Technically works but requires me to rename my commands any time there is arguement. With my current plugins this would be like 100. Any ideas or tips would be awesome!

    Update Here is a sample of my aliases: Solution seems to be code 2 from above post.

    If Anyone knows the proper way to do this ie code 1 explained in the previous post. Unfortunantly I was not able to find a way to avoid the overides without just renaming the commands that have interferances.

    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-
      away:
      - essentials:afk
    #  - essentials:spawn
      afk:
      - []
      b:
      - essentials:ban
      ban:
      - []
      bip:
      - essentials:banip
      safechest:
      - essentials:enderchest
      enderchest:
      - []
      ec:
      - []
      jc_enderchest:
      - []
      food:
      - essentials:feed
      feed:
      - []
      flymode:
      - essentials:fly
      fly:
      - []
      gamemode:
      - []
      gm:
      - []
      survival:
      - []
      creative:
      - []
      OwnerCreative:
      - jcommands:creative
      OwnerSurvival:
      - jcommands:survival
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 14, 2016
Thread Status:
Not open for further replies.

Share This Page