Problem/Bug /help with the command.yml

Discussion in 'Bukkit Help' started by Litchytsu, Jun 12, 2019.

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

    Litchytsu

    so I wanted to make a cutom /help on my spigot/bukkit server so i seached for a solution and the best one i found was using the command.yml file so i filled it up but my new commands refuse to work.

    here is the content of the command.yml file :
    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
    # [URL]https://www.spigotmc.org/go/commands-yml[/URL]
    # 
    # 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 [URL]https://www.spigotmc.org/go/irc[/URL] )
    # Forums: [URL]https://www.spigotmc.org/[/URL]
    # Bug tracker: [URL]https://www.spigotmc.org/go/bugs[/URL]
    
    command-block-overrides: []
    ignore-vanilla-permissions: false
    aliases:
      icanhasbukkit:
      - version $1-
      spawn:
      - warp spawn
      farm:
      - mvtp farm
      normal:
      - mvtp world
      help:
      - /tellraw @p ["",{"text":"Help:","color":"yellow"},{"text":"\n"},{"text":"TELEPORTATION :","bold":true,"color":"blue"},{"text":"\n/tpa [Player] -> Send a teleportation request to a player\n/sethome [name] -> set a home (max limit of 4 homes)\n/home [name] -> set a home (max limit of 4 homes)\n/warp [name] -> teleport to a warp\n/back -> teleport to the lastest position"}]
      help2:
      - /tellraw @p ["",{"text":"help2:","color":"yellow"},{"text":"\n"},{"text":"WORLD TELEPORTATION :","color":"green"},{"text":"\n/farm -> send you to the farm world (no claim no rules about the terrain)\n/normal -> send you to the original world (/rules for mor infos) \n"},{"text":"CLAIMS :","color":"gold"},{"text":"\n/claimbook-> gives you a book with everything to know about how to claim"}]
      rules:
      - /tellraw @p ["",{"text":"rules:","color":"yellow"},{"text":"\n"},{"text":"MAIN WORLD :","bold":true,"color":"dark_green"},{"text":"\n-Damage the terrain the least possible\n-Don't mine (use the farm world for that)\n-Please don't make infinite restone clocks\n-Be gentle with others\n"},{"text":"FARM WORLD :","color":"gold"},{"text":"\n-you can do more or less anything (no claim and get reset around every 2 months)"}]
     
    Last edited by a moderator: Jun 12, 2019
  2. Offline

    drives_a_ford

    When you're saying they "refused to work", what do you mean exactly?
    Are they not recognized as commands?
    Are they recognized but saying you've got no permissions?
    Is there another issue?

    And by the way, you're not supposed to have the "/" in front of the commands, which means the last three definitely won't work.
     
  3. Offline

    Litchytsu

    they are not even proposed when i'm starting to type them and in addition to that when are said as not existant even the first ones.
    There is only the one that is originaly in the file (the first one)

    I found that when i open the file in NP++ there are thing that are in the wrong color but they are at the good place.
     

    Attached Files:

    Last edited by a moderator: Jun 13, 2019
  4. Offline

    timtower Moderator Moderator

    @Litchytsu Are they split with enters or is that line wrapping?
     
  5. Offline

    drives_a_ford

    Did you make sure to restart the server for the additional commands?
    When I copied the commands it worked fine for me just fine.

    Actually, when I copied the above lines to my commands.yml and run the server, it automatically formatted them with a linebreaks as
    Code:
    aliases:
      icanhasbukkit:
      - version $1-
      spawn:
      - warp spawn
      farm:
      - mvtp farm
      normal:
      - mvtp world
      help:
      - tellraw @p ["",{"text":"Help:","color":"yellow"},{"text":"\n"},{"text":"TELEPORTATION
        :","bold":true,"color":"blue"},{"text":"\n/tpa [Player] -> Send a teleportation
        request to a player\n/sethome [name] -> set a home (max limit of 4 homes)\n/home
        [name] -> set a home (max limit of 4 homes)\n/warp [name] -> teleport to a warp\n/back
        -> teleport to the lastest position"}]
      help2:
      - tellraw @p ["",{"text":"help2:","color":"yellow"},{"text":"\n"},{"text":"WORLD
        TELEPORTATION :","color":"green"},{"text":"\n/farm -> send you to the farm world
        (no claim no rules about the terrain)\n/normal -> send you to the original world
        (/rules for mor infos) \n"},{"text":"CLAIMS :","color":"gold"},{"text":"\n/claimbook->
        gives you a book with everything to know about how to claim"}]
      rules:
      - tellraw @p ["",{"text":"rules:","color":"yellow"},{"text":"\n"},{"text":"MAIN
        WORLD :","bold":true,"color":"dark_green"},{"text":"\n-Damage the terrain the
        least possible\n-Don't mine (use the farm world for that)\n-Please don't make
        infinite restone clocks\n-Be gentle with others\n"},{"text":"FARM WORLD :","color":"gold"},{"text":"\n-you
        can do more or less anything (no claim and get reset around every 2 months)"}]
    
     
  6. Offline

    Litchytsu

    I have one last question :
    Can i have a command like this that exeed the max wirting size of normal minecraft ?
    How ca i make a permition that authorize only /help,/help2 ect ?
    Because it's using /tellraw most memebers can't use it atm.
     
    Last edited: Jun 13, 2019
  7. Offline

    drives_a_ford

    That's not how commands.yml works. It's simply a mapping from one command to another.
     
  8. Offline

    Kars

    Sounds like what you want is a seperate plugin with commands.
     
Thread Status:
Not open for further replies.

Share This Page