EasyChatCommands

Easily Add Chat Info Commands

Total Downloads: 3,508 - First Release: Feb 5, 2017 - Last Update: Feb 5, 2017

5/5, 9 likes
  1. Wulf

    Wulf Community Admin

    Chat commands are not enabled in Oxide for "vanilla" unless you are admin.
     
  2. I am very new to this, and this plugin seems awesome.. However.. I would like to edit it, to make my own commands. It should work with notepad right?

    When I open the code with notepad, I can't find

    {
    "commandName":"commandText", <-- Notice how there are comma here
    "commandName":"commandText", <-- and here
    "commandName":"commandText" <--- But no comma after the last item
    }

    So I have no idea where in the code I should type in the different commands and text..
    I assume, instead of the commandname, I should type for example "admin":"name of the admin and email" Is that correct?

    But still I can't find these examples lines..

    I wish players can have access to commands, like /admin, /info, /server, /rules, /wipe.. ect ect and information about each command.

    Help please :)
     
  3. Code:
    {
      "commands": "<color=#00FF00>/statsui</color> - hide the levels UI\n <color=#00FF00>/kit</color> - See the available kits\n <color=#00FF00>/clan</color> - Information on creating and managing clans\n <color=#00FF00>/shop</color> - View the shop\n <color=#00FF00>/vote and /claim</color> - Vote for the server and use /claim to get your rewards\n <color=#00FF00>/settings</color> - View the server settings",
      "settings": "Gather Rate: x10\n Furnace Rate: x20\n High loot",
      "rules": "Rules Here"
    }
    I can't see anything wrong with this, and it's valid Json, but when I do /rules in game, it says command not found. Any ideas?

    Nevermind, was putting it int he wrong folder lol
     
  4. Could you add a resourceID for automatic plugin updaters?
     
  5. Hello

    I installed this plugin but it didnt create a json file.
     
  6. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors.
     
  7. I got this
    23:37 [Info] EasyChatCommands was compiled successfully in 2979ms
    23:37 [Info] [Easy Chat Commands] Loaded Chat Commands


    But the json file isnt there
     
  8. Wulf

    Wulf Community Admin

    Where are you looking for it?
     
  9. i have my server in nitrado. so in my oxide folder i have plugins, lang, confg, log
    In my oxide folder i have the plugins, data, log, confg and lang
    I did found a json file in the data.
    I thought it was supposed to be in confg.

    I edited the one in the data like this:

    {
    "discord": "Join our community discord and have a blast with the rest of the family ",
    "rules": "Maturity is a MUST! Do not be a douche. Profanity will not be tolerated. Watch your language",
    "plugins": "Clan, Trade, Checkpoints, Externawallprotect, Signartist"
    }




    Is this correct?
     
  10. Wulf

    Wulf Community Admin

    Sigh... Looks like @Jake Rich is misusing the datafile API still. :p

    Yes, that would be correct. Hopefully the author can put the config in the proper location.

    Also, @Jake Rich, Loaded() hook can be Init() and unused Unload() hook can be removed.
     

  11. Not sure I follow the last sentece there hehe

    So in the ingame chat I can do /discord but command dont exist
     
  12. Wulf

    Wulf Community Admin

    Make sure the plugin was unloaded before you add them, then reload the plugin after you make the changes. The datafiles are saved when a plugin is unloaded, so any changes you make would be reset unless you save it when it's unloaded.
     

  13. Ill give it a try and see if this will work.
     
    Last edited by a moderator: Oct 5, 2017

  14. Finally worked. Its only been hours hahah

    Thanks Wulf :)
     
  15. um , did all as stated here but commands don't work please help
     
  16. Hmm, is it possible to use another command to use the command you created? For example:
    "bgrade 2": "up 2"
     
  17. When editing the data file for command read outs, how do you get line breaks in the txt? Example /Admin: Mike, Ethan, Sam. How would you edit it to get it to show up like this...
    /Admin:
    Mike
    Eathan
    Sam
     
  18. Separate them with \n to insert a newline character:
    Code:
    Mike\nEthan\nSam
     
  19. In the config or data file correct? not through the /chat

    Edit: Answered my own question Thanks @Mughisi
     
  20. Does this mod conflict with better chat? i cant seem to get it to work. says its loaded and i left out the last comma. but commands dont seem to work.