Help [Replaced]

Discussion in 'Plugin Support' started by AnExiledGod, Dec 6, 2015.

  1. AnExiledGod updated Help with a new update entry:

    1.2

     
  2. Im not a coder. I tried doing the same format but i cant get my other commands to work. Here is the code:
    Code:
    {
      "HelpCommands": {
        "rules": "Don't cheat, hack, or exploit bugs. Obey admins, and have fun.",
        "admin list": "brian3924",
        "kit info": "type,/kit beginner, to gain starter kit.",
      },
      "HelpSettings": {
        "HelpTitle": "Help",
        "HelpTitleColor": "#ff8000"
      }
    }
    /help admin list says "unkown command"
     
    Last edited by a moderator: Dec 25, 2015
  3. You can't have multiple word help commands, unless you use the command /help "admin list" but your players wont figure that out.
     
  4. then what is the point of the mod?

    You have to type "/help rules" to get the rules.
    How can i have them type "/help kit info" to get the kit info without them having to type /help "kit info" ?
     
  5. Make them type "kitinfo"

    I created the plugin, showed you how to use it, it's now your responsibility to use it correctly.
     
  6. When in-game I'm putting in lets say: /helpadd report Report all hackers
    It says the command was successfully added but when I type /report it says it's an unknown command
     
  7. Multiwords need to be put in quotes.
     
  8. I put in quotes and still says the command does not exist
     
  9. /help report

    Instructions are on the front page.
     
  10. in this plugin I change the color of the text?
     
    Last edited by a moderator: Dec 26, 2015
  11. Wulf

    Wulf Community Admin

    You should be editing the config under Oxide/config, not the plugin itself. You can see how to style messages here: Oxide API for Rust.
     
  12. I like has entered text <color = # 00ffffff> text me </ color> in the plugin itself, I do not work for some reason, the text color
     
  13. Wulf

    Wulf Community Admin

    You should editing the config, not the plugin. The plugin will be using the config.
     
  14. a configuration file can be an example of how to work with text please?
     
  15. Wulf

    Wulf Community Admin

    Code:
    {
      "HelpCommands": {
        "rules": "<color=#ffffff>Don't cheat, hack, or exploit bugs. Obey admins, and have fun.</color>"
      },
      "HelpSettings": {
        "HelpTitle": "Help",
        "HelpTitleColor": "#ff8000"
      }
    }
     
  16. How can i make /help command work and give info about plugins and other commands? Its ok if it doesnt gather info from other plugins, i am fine with typing them myself.
     
  17. Not sure if there is a better way, but what I did was create new help lines. So in chat type something like:
    /helpadd kits "Type /kit to view available kits then /kit name to claim."
    /helpadd tp "Type /tpr name to request a tp to player and /tpa to accept incoming requests."
    then add as many as you like to explain your plugins.
     
  18. Thanks, thats how i did as well. This is an old post
     
  19. I'm writing the description to commands in Russian,and I go ?????? ,what could be wrong?
     
  20. Wulf

    Wulf Community Admin

    Are you saving the file as UTF-8?