1. [Error] Failed to load plugin rules
    Traceback (most recent call last):
    File "rules.py", line 2, in <module>
    ImportError: Import of module ChatManager not allowed
    [DOUBLEPOST=1454009886][/DOUBLEPOST]Change "ChatManager" to "ChatManagerServer" in 2 plases. And it will work.
     

  2. Thanks for taking over but I cannot get it to work again since the last update I think... it doesn't recognise /rules
     
  3. Fix fersion
     

    Attached Files:

  4. can't seem to edit the config file every time I reload plugin it overwrites my changes. Have made sure to not break the code.
     
    Last edited by a moderator: Feb 2, 2016
  5. Wulf

    Wulf Community Admin

    Please upload the config changes you are trying to make. If a config reverts, it is generally because of bad formatting in the edits.
     
  6. Is it possible to remove rules languages?
    When I remove the unneeded rules and do a reload they are added again,

    I want just 2 rules. Dutch and English because I don;t know how to translate it. (people who are not good in English or Dutch may say they couldn't read the rules)

    This is how my config looks like:
    Code:
    {
    "MESSAGES": {
    "AVAILABLE LANGS": "Available languages",
    "LANG NOT EXIST": "Could not find <red>{lang}<end> language, type <lime>/rules list<end> for the full list of languages.",
    "TITLE PREFIX": "<orange>•<end> <silver>SERVER RULES<end>:"
    },
    "RULES": {
    "EN": [
    "Respect all players",
    "Dont keep asking to get stuff from admin or other players, They decide to give you something or not",
    "Admins do play this game also, only ask for their advise when you are really stuck. Sometimes other players can help you to."
    ],
    "NL": [
    "Respecteer alle spelers",
    "Niet zeuren om spullen, mensen mogen zelf bepalen of ze je iets willen geven of niet",
    "Admins spelen het spel zelf ook, vraag alleen om advies wanneer je echt vast zit en niemand anders je hulp kan bieden."
    ]
    },
    "SETTINGS": {
    "COMMAND TRIGGER": "rules",
    "DEFAULT LANGUAGE": "en",
    "ENUMERATE RULES": true,
    "PREFIX": "<white>[<end> <cyan>SERVER RULES<end> <white>]<end>",
    "REMOVE CHAT COLORS": false
    }
    }
     
    Last edited by a moderator: Jul 5, 2016
  7. i am trying to add rules to my server the command /rules
    and stuff but it aint work is it out of date or somthing how to do so
    someone please tell me
     
  8. yes i have it and it is not working on my oxide server
     
  9. mmm, I haven't idea what do you do, because my "rules" plugin works good with new update.
    [DOUBLEPOST=1467681624][/DOUBLEPOST]btw, have you got any errors in your server log?
     
  10. no not much jus bounty hunters may i get a plugin of ur rules so i can add it n change it to my rules? please
     
  11. Yes you can, find configuration file (\oxide\config\rules.json) and edit it in notepad (notepad++ is better), but be carefull don't make mistakes in code!!!
     
  12. yea i do not have one of those i was asking if u could post a file for me to get off u
     
  13. if you start your server and have "rules" plugin in oxide\plugins\ directory, you must have rules.json in config directory, because plugin automatically creates new. but if you want one default config file....
     

    Attached Files:

  14. what is name of youre rules when u download it mine says Rules.py
    cause that is in my plugins for my server and i have no rules.json til u gave me one =)
     
  15. yes but "rules.py" without capitals (.py because this plugin is write in python language)
    when you open your log file have you got line "[Info] Loaded plugin Server Rules v1.0.2 by surfarcher" in?
     
  16. Wulf

    Wulf Community Admin

    The rules.py is the plugin, you shouldn't be editing it. The rules.json is the config file.
     
  17. @Wulf
    He can't find rules.json in his oxide\config\ directory.
    [DOUBLEPOST=1467686284][/DOUBLEPOST]or He is blind :D
     
  18. Wulf

    Wulf Community Admin

    If it's not there, the plugin may not be loaded else Oxide may not be installed.
     
  19. It occurred me too... I just gave him a helping hand via Team Viewer if he wants