Godmode

Moved

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

4.76667/5, 60 likes
  1. Woops forgot to switch that out for god, I re-used some code from my Inventory Viewer ;)
     
  2. Wulf

    Wulf Community Admin

    That appears to be a mistake, probably something that got copied over from another.
     
  3. This worked for me too
     
  4. hi my godmode plugin works before the rust update, and now every other plugin in my server works but godmode. when i do /god it just shows me like i do not have it installed.
     
  5. Check your logs for errors or post it here please
     
  6. sorry im new to this but how do you check logs for error? from f1 console?
    I have rusty too
     
  7. You would need to connect to your server's ftp (or file manager through the control panel) and go to the logs folder in your oxide directory, there you should see a file with today's date.
     
  8. I can't seem to find out how enable the plugin. I install it but "canusegodmode" does allow me to give permission to anyone including me.
     
  9. I am having the same problem as QTPie. When I type /god nothing appears in the chat. It worked fine last night.

    /god nothing appears in the chat. It worked fine last night.
     

    Attached Files:

    Last edited by a moderator: May 15, 2015
  10. Wulf

    Wulf Community Admin

    What command did you use to add it, and did you see it added successfully?
    [DOUBLEPOST=1431730740][/DOUBLEPOST]
    Those aren't the latest logs, and not the latest Oxide version. Make sure you have Oxide installed.
     
  11. So I have an issue with this plugin, or the previous one.
    My moderators are stuck in GOD MODE, and theres only one way to fix it - which is to remove godmode.lua and replace it with the old m-godmode.lua, and then make the moderators type /god to disable the mod.

    Thing is, when i Remove m-godmode.lua and installs the updated version "godmode.lua" the moderators get instagodmode which cant be removed. How do I fix this?
     
    Last edited by a moderator: May 16, 2015
  12. Same here, im using latest Oxide update.
    Code:
    [Oxide] 1:31 PM [Error] Failed to call hook 'God' on plugin 'Godmode' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 1:31 PM [Debug]   at Oxide.Core.Libraries.Permission.GroupExists (System.String groupname) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GroupHasPermission (System.String groupname, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission+<GroupsHavePermission>c__AnonStorey0.<>m__0 (System.String group) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.Any[String] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GroupsHavePermission (System.Collections.Generic.HashSet`1 groupname, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.UserHasPermission (System.String userid, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.IsAllowed (.BasePlayer player, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Godmode.God (.BasePlayer player, System.String cmd, System.String[] args) [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
    [Oxide] 1:31 PM [Warning] CallHook 'God' on plugin 'Godmode' took: 914ms
    TimeWarning: Net.sv.Cycle took 1.01 seconds (1013ms)
     
  13. I updated Oxide and it fixed the problem.
     
  14. Wulf

    Wulf Community Admin

    The latest version is Godmode.cs, not .lua. It uses the Oxide permission system, so the only way your moderators would have godmode is if the group they are in is assigned the "canusegodmode" permission. You can check in your oxide/data/oxide.groups.json file.
     
  15. i searched this site up and down and i could not really find anywhere to help me further understand the oxide group jsonfile. i am forced to use the old godmode version because i dont understand on how to use the permissions for oxide. can you help me with this please?
     

    Attached Files:

  16. Wulf

    Wulf Community Admin

  17. Need to make sure you're on the latest Oxide & Godmode

    Add the permission to a group, and add your users to that group i.e
    oxide.group add admin
    oxide.grant group admin canusegodmode
    oxide.usergroup add <playername> admin

    Keep adding all the names you want to have godmode to that admin group.

    Issues I had in the latest update, with players being stuck in Godmode and not having permission
    I already had mine setup using 'CanUseGodmode' - I had to make it all lowercase to work, so removed that and added 'canusegodmode'.
    I also noticed in oxide.users.json, that my users with higher than 'player' permissions, all had dual entries - so I removed the dual entry which just had the player name and no steamid.
     
  18. Wulf

    Wulf Community Admin

    The admin group already exists, no need to add it again. Users that have Rust permission levels are automatically added to the appropriate group as well, so that might be your duplicate issue.
     
  19. No permission when i try to use it I have ownerID and still cant get godmode help please i added myself to admin and i configured admin to canusegodmode but it doesnt work
     
  20. Wulf

    Wulf Community Admin

    This plugin doesn't use the ownerid system from Rust, it uses Oxide's permission system. What command did you use to assign the permission to the admin group or user?