Godmode

Moved

Total Downloads: 30,058 - First Release: Oct 23, 2014 - Last Update: Oct 27, 2017

4.76667/5, 60 likes
  1. I'm getting a stupid number of errors from plugins that just stopped working for some reason. This is one of them
    Code:
    [Oxide] 10:35 PM [Error] Failed to call hook 'cmdGrant' on plugin 'Rust Core' (NullReferenceException: Object reference not set to an instance of an object)[Oxide] 10:35 PM [Debug]   at Oxide.Core.Libraries.Permission.UserExists (System.String userid) [0x00000] in <filename unknown>:0
      at Oxide.Rust.Plugins.RustCore.cmdGrant (.Arg arg) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  2. Wulf

    Wulf Community Admin

    Please post your oxide.users.json and oxide.groups.json files from the oxide/data directory.
     
  3. They are both empty.
    [DOUBLEPOST=1432785630][/DOUBLEPOST]Just kidding

    This is the groups.json
    Code:
    {
      "admin": {
        "Title": "admin",
        "Rank": 0,
        "Perms": [
          "color_owner",
          "admin"
        ],
        "ParentGroup": null
      },
      "moderator": {
        "Title": "moderator",
        "Rank": 1,
        "Perms": [
          "color_mod",
          "moderator"
        ],
        "ParentGroup": null
      },
      "player": {
        "Title": "player",
        "Rank": 2,
        "Perms": [
          "color_player",
          "player"
        ],
        "ParentGroup": null
      },
      "donor": {
        "Title": "donor",
        "Rank": 1,
        "Perms": [],
        "ParentGroup": null
      },
      "mod": {
        "Title": "mod",
        "Rank": 2,
        "Perms": [],
        "ParentGroup": null
      },
      "owner": {
        "Title": "owner",
        "Rank": 4,
        "Perms": [],
        "ParentGroup": null
      }
    }
     
  4. Hey there, New to hosting a server. how do i use the canusegodmode and enable it for myself. Sorry, sure its a noob question. thanks.
     
  5. you need to give yourself the permission.

    Go to your server console and type:
    Code:
    oxide.grant user "steam64 ID" CanUseGodMode
     
  6. Wulf

    Wulf Community Admin

    And your oxide.users.json file? Also, what was the exact command you used?
     
  7. Thank you so much! Saved me a few hours searching though the server files and google. :)
     
  8. Wulf

    Wulf Community Admin

    There's a stickied thread under Oxide Support on using the permission system. ;)
     
  9. Awesome! Thanks brother you have a great night :) Swing by some time: firecockgaming.com/
     
  10. The oxide.users.json is empty. not a single thing there.

    I used:
    Code:
    oxide.grant user "my steam id" CanUseGodMode
     
  11. Wulf

    Wulf Community Admin

    Did you get any error or confirmation when using that? Also, try "canusegodmode" instead.
     
  12. The error I posted above is what spams the console when I try to grant the permission to somebody.

    I have a feeling that the oxide.users.json shouldn't be empty. Is there a default one I can just throw in there to get things rolling?

    Also, not sure if you saw the post I tagged you in for the chat handler plugin as well. I'm getting all kinds of errors.
     
  13. Wulf

    Wulf Community Admin

    Does it have anything at all in the file? It defintely shouldn't be empty, as every user is added to it. You're getting the error because it likely can't write to that file, which isn't an issue with this plugin but instead your permission file. It could be a filesystem issue, or software preventing it from being written to. You could also try deleting that file and restarting the server.
     
  14. http://gyazo.com/ce610e4160e75fd2d20dd2e258c7e0db

    That's what it looks like. I use clanforge/multiplay so access is somewhat limited. No FTP </3
     
  15. Wulf

    Wulf Community Admin

    It may be a permission issue on their system, it shouldn't be empty. I'd recommend checking with them to see if they might have an idea.
     
  16. Whats the default format for entries in the .json?

    Is it something like:
    Code:
    {
        "steamid": {
        "LastSeenNickname": "Name",
        "Perms": [],
        "Groups": [
            "whatever the owner group is"
            ],
        }
    }
     
  17. Wulf

    Wulf Community Admin

    Yup, that is pretty much it. It is generated automatically when users join. Trying to handling/create it manually isn't a good idea, as you'll still run into issues if your server is unable to write to the file.
     
  18. I'll give it a go while I wait for my host to get back to me. Server is already broken so whats the worse that could happen eh?

    Also, do you think the errors I posted in the chat handler thread have to do with this as well?
     
  19. Wulf

    Wulf Community Admin

    Yes, they're both related to permissions, so both likely file issues.
     
  20. WHELP as to be expected, that didn't work. Now we play the 24-48 hour waiting game.